Update nodemgmt-install.sh

This commit is contained in:
2019-01-27 12:57:59 -06:00
parent b17528a3fd
commit fae5bd5f4b

View File

@@ -9,22 +9,20 @@ if [ "$EUID" -ne 0 ]; then APTFUNC="sudo ${ATYPE}"
else APTFUNC="${ATYPE}"
fi
echo ""
echo -e "${CS[color,LightGreen]}LinUPx Installation Script${CS[color,Default]}"
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
# $PREFIX git -c http.sslVerify=false clone https://git.schroedercity.com/voltron/LinUPx.git /opt/LinUPx
do_with_root git clone https://git.schroedercity.com/voltron/LinUPx.git /opt/LinUPx
do_with_root ln -s /opt/LinUPx/run.sh /usr/local/bin/runup
echo -e "useAutoremove=1
opennms=false" > /opt/LinUPx/settings.conf
do_with_root git clone https://git.schroedercity.com/voltron/NodeMgmt.git /opt/NodeMgmt
do_with_root ln -s /opt/NodeMgmt/run.sh /usr/local/bin/nodemgmt
echo -e "node-hostname=$(hostname)" > /opt/NodeMgmt/settings.conf
echo ""
echo -e "${CS[color,LightYellow]}LinUPx has been Installed${CS[color,Default]}"
echo -e "${CS[color,LightYellow]}NodeMgmt has been Installed${CS[color,Default]}"
echo ""
echo -e "To run updates, use the command: ${CS[color,Green]}runup${CS[color,Default]}"
echo -e "To run, use the command: ${CS[color,Green]}nodemgmt${CS[color,Default]}"
echo ""
echo ""