diff --git a/install-nodemgmt.sh b/install-nodemgmt.sh index 4e45014..fd190e3 100755 --- a/install-nodemgmt.sh +++ b/install-nodemgmt.sh @@ -14,11 +14,11 @@ echo -e "${CS[color,LightGreen]}NodeMgmt Installation Script${CS[color,Default]} do_with_root $APTFUNC -y install wget curl git do_with_root set -eu -do_with_root git clone --recurse-submodules gogs@git.schroedercity.com:voltron/NodeMgmt.git /opt/NodeMgmt -cd /opt/NodeMgmt +do_with_root git clone --recurse-submodules gogs@git.schroedercity.com:voltron/NodeMgmt.git /opt/nodemgmt +cd /opt/nodemgmt do_with_root git submodule foreach git pull origin master -do_with_root ln -s /opt/NodeMgmt/run.sh /usr/local/bin/nodemgmt -echo -e "node_hostname=$(hostname)" > /opt/NodeMgmt/settings.conf +do_with_root ln -s /opt/nodemgmt/run.sh /usr/local/bin/nodemgmt +echo -e "node_hostname=$(hostname)" > /opt/nodemgmt/settings.conf echo "" diff --git a/uninstall-nodemgmt.sh b/uninstall-nodemgmt.sh index 38d02ab..9a62d3d 100755 --- a/uninstall-nodemgmt.sh +++ b/uninstall-nodemgmt.sh @@ -14,7 +14,7 @@ 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 +rm -Rf /opt/nodemgmt echo "" echo -e "${CS[color,LightRed]}NodeMgmt has been Removed${CS[color,Default]}"