From a673e050877e8e42c903ab73353779f3e357c6b3 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 5 Jun 2018 01:07:32 -0600 Subject: [PATCH] update uninstaller --- usr/share/install_helper.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/share/install_helper.sh b/usr/share/install_helper.sh index b8515ad..2a7b28f 100644 --- a/usr/share/install_helper.sh +++ b/usr/share/install_helper.sh @@ -196,11 +196,11 @@ chmod a+x $TELEBIT_PATH/bin/$my_app # Create uninstall script based on the install script variables cat << EOF > $TELEBIT_PATH/bin/${my_app}_uninstall #!/bin/bash -if [ type -p launchctl ]; then +if [ "$(type -p launchctl)" ]; then sudo launchctl unload -w /Library/LaunchDaemons/${my_app_pkg_name}.plist sudo rm -rf /Library/LaunchDaemons/cloud.telebit.remote.plist fi -if [ type -p systemctl ]; then +if [ "$(type -p systemctl)" ]; then sudo systemctl disable telebit; sudo systemctl stop telebit sudo rm -rf /etc/systemd/system/$my_app.service fi