From 6e6e26c313e81f46fe6c9d8bfdb2d7016860681d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 28 Jan 2019 10:30:58 -0600 Subject: [PATCH] update --- linupx-scripts.sh | 10 +++++++++- run.sh | 11 +---------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/linupx-scripts.sh b/linupx-scripts.sh index 82c52f2..e6ea5e2 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -2,7 +2,7 @@ # LinUPx - Linux Update Scripts action="$1" -FOLDER='/opt/LinUPx' +FOLDER='/opt/idssys/LinUPx' VERS='4.01282019' if [ ! -f /opt/LinUPx/settings.conf ]; then @@ -10,6 +10,14 @@ if [ ! -f /opt/LinUPx/settings.conf ]; then opennms=false" > /opt/LinUPx/settings.conf fi +if [ ! -d "/opt/idssys/LinUPx" ]; then + mv /opt/LinUPx /opt/idssys/ + rm -Rf /opt/idssys/LinUPx + ln -s /opt/idssys/LinUPx/run.sh /usr/local/bin/runup + echo "Program has bveen updated, please re-run" + exit 0 +fi + source /opt/idssys/LinUPx/settings.conf source /opt/idssys/defaults/colors.inc source /opt/idssys/defaults/default.inc diff --git a/run.sh b/run.sh index 784b639..3b4dddd 100755 --- a/run.sh +++ b/run.sh @@ -1,16 +1,7 @@ #!/usr/bin/env bash # UbUpdate - Ubuntu Update Scripts Loader -source /opt/LinUPx/settings.conf - - - -if [ ! -d "/opt/idssys/LinUPx" ]; then - mv /opt/LinUPx /opt/idssys/ - rm -Rf /opt/idssys/LinUPx - ln -s /opt/idssys/LinUPx/run.sh /usr/local/bin/runup -fi - +source /opt/idssys/LinUPx/settings.conf cd /opt/idssys/LinUPx #echo ""