diff --git a/apps/Web Apps/uninstall b/apps/Web Apps/uninstall index 5f08ae9..405b0b3 100755 --- a/apps/Web Apps/uninstall +++ b/apps/Web Apps/uninstall @@ -7,7 +7,9 @@ function error { exit 1 } -sudo apt purge webapp-manager -y || error "Failed to uninstall webapp-manager" +if command -v webapp-manager >/dev/null ;then + sudo apt purge webapp-manager -y || error "Failed to uninstall webapp-manager" +fi #if your app installs any packages, keep this command here so those packages will be removed. "${DIRECTORY}/purge-installed" "$(dirname "$0")" || error "Failed to uninstall dependencies"