From aeb5b6012b32e08154a8bd18329862f1873a19a0 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 27 Jan 2019 21:46:39 -0600 Subject: [PATCH] update --- uninstall-linupx.sh | 5 +++++ uninstall-mysqlbu.sh | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/uninstall-linupx.sh b/uninstall-linupx.sh index b4bf47f..579ad47 100755 --- a/uninstall-linupx.sh +++ b/uninstall-linupx.sh @@ -16,6 +16,11 @@ do_with_root set -eu rm -f /usr/local/bin/runup rm -Rf /opt/idssys/LinUPx +IDSSYSF="`ls -l /opt/idssys/ | grep -c ^d`" +if [ "$IDSSYSF" = 1 ]; then + rm -Rf /opt/idssys +fi + echo "" echo -e "${CS[color,LightRed]}LinUPx has been Removed${CS[color,Default]}" echo "" diff --git a/uninstall-mysqlbu.sh b/uninstall-mysqlbu.sh index cf586f6..302ce34 100755 --- a/uninstall-mysqlbu.sh +++ b/uninstall-mysqlbu.sh @@ -16,6 +16,11 @@ do_with_root set -eu rm -f /usr/local/bin/mysqlbu rm -Rf /opt/idssys/mysqlbu +IDSSYSF="`ls -l /opt/idssys/ | grep -c ^d`" +if [ "$IDSSYSF" = 1 ]; then + rm -Rf /opt/idssys +fi + echo "" echo -e "${CS[color,LightRed]}MySQL-BU has been Removed${CS[color,Default]}" echo ""