From 8813a0bd4ed0f8f57dca9867bd3adb232cd29809 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 27 Jan 2019 15:49:39 -0600 Subject: [PATCH] Update uninstall-nodemgmt.sh --- uninstall-nodemgmt.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/uninstall-nodemgmt.sh b/uninstall-nodemgmt.sh index 8e00228..c616999 100755 --- a/uninstall-nodemgmt.sh +++ b/uninstall-nodemgmt.sh @@ -16,6 +16,11 @@ do_with_root set -eu rm -f /usr/local/bin/nodemgmt rm -Rf /opt/idssys/nodemgmt +IDSSYSF="`ls -l /opt/idssys/ | grep -c ^d`" +if [ "$IDSSYSF" = 1 ]; then + rm -Rf /opt/idssys +fi + echo "" echo -e "${CS[color,LightRed]}NodeMgmt has been Removed${CS[color,Default]}" echo ""