added nodemgmt uninstall
This commit is contained in:
@@ -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]}"
|
||||
|
||||
23
uninstall-nodemgmt.sh
Executable file
23
uninstall-nodemgmt.sh
Executable file
@@ -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
|
||||
Reference in New Issue
Block a user