From 0d71dab110994d5512e3a9b298d664899894d723 Mon Sep 17 00:00:00 2001 From: Botspot Date: Sun, 22 Aug 2021 21:34:10 -0500 Subject: [PATCH] Teamviewer host: use pkg-install --- apps/TeamViewer Host/install-32 | 6 +++--- apps/TeamViewer Host/uninstall | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/TeamViewer Host/install-32 b/apps/TeamViewer Host/install-32 index f2bbebb..a135424 100755 --- a/apps/TeamViewer Host/install-32 +++ b/apps/TeamViewer Host/install-32 @@ -7,11 +7,11 @@ function error { exit 1 } -# Download teamviewer installation file # +# Download teamviewer installation file wget https://download.teamviewer.com/download/linux/teamviewer-host_armhf.deb || error "Failed to download teamviewer-host_armhf.deb" -# Install it with dpkg -sudo apt install -y --fix-broken ~/teamviewer-host_armhf.deb || error "Failed to install teamviewer-host_armhf.deb" +#install deb file +"${DIRECTORY}/pkg-install" "$HOME/teamviewer-host_armhf.deb" || error "Failed to install teamviewer-host_armhf.deb" # Delete teamviewer installation file rm -f ~/teamviewer-host_armhf.deb diff --git a/apps/TeamViewer Host/uninstall b/apps/TeamViewer Host/uninstall index 03d7cfc..7631643 100755 --- a/apps/TeamViewer Host/uninstall +++ b/apps/TeamViewer Host/uninstall @@ -7,4 +7,4 @@ function error { exit 1 } -sudo apt purge -y teamviewer-host || error "APT failed to remove teamviewer-host package." +"${DIRECTORY}/purge-installed" "$(dirname "$0")" || error "Failed to remove teamviewer-host package!"