diff --git a/install-nodemgmt.sh b/install-nodemgmt.sh index e00c343..6b44296 100755 --- a/install-nodemgmt.sh +++ b/install-nodemgmt.sh @@ -18,6 +18,8 @@ do_with_root git clone https://git.schroedercity.com/voltron/NodeMgmt.git /opt/N do_with_root ln -s /opt/NodeMgmt/run.sh /usr/local/bin/nodemgmt echo -e "node-hostname=$(hostname)" > /opt/NodeMgmt/settings.conf +cd /opt/NodeMgmt +git config --global submodule.recurse true echo "" echo -e "${CS[color,LightYellow]}NodeMgmt has been Installed${CS[color,Default]}" diff --git a/uninstall-nodemgmt.sh b/uninstall-nodemgmt.sh new file mode 100755 index 0000000..38d02ab --- /dev/null +++ b/uninstall-nodemgmt.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash +# Wrapper script for install, for easier execution via URL. + +source /dev/stdin <<< "$(curl -sL http://scity.xyz/colorsinc)" +source /dev/stdin <<< "$(curl -sL http://scity.xyz/defaultinc)" + + +if [ "$EUID" -ne 0 ]; then APTFUNC="sudo ${ATYPE}" +else APTFUNC="${ATYPE}" +fi +echo "" +echo -e "${CS[color,LightGreen]}NodeMgmt Removal Script${CS[color,Default]}" + + +do_with_root set -eu +rm -f /usr/local/bin/nodemgmt +rm -Rf /opt/NodeMgmt + +echo "" +echo -e "${CS[color,LightRed]}NodeMgmt has been Removed${CS[color,Default]}" +echo "" + +exit 0 \ No newline at end of file