folder change

This commit is contained in:
2019-01-27 15:30:27 -06:00
parent ba5b8fc051
commit ada6205776
2 changed files with 6 additions and 8 deletions

View File

@@ -2,13 +2,12 @@
# MySQL-BU - MySQL Backup Scripts
action="$1"
FOLDER='/opt/nodemgmt'
VERS='1.01272019'
CERT_DAEMON='/usr/bin/certbot'
source ${folder}/settings.conf
source ${folder}/ids-defaults/colors.conf
source ${folder}/ids-defaults/default.conf
source /opt/idssys/nodemgmt/settings.conf
source /opt/idssys/defaults/colors.conf
source /opt/idssys/defaults/default.conf
# ========================================================= #

7
run.sh
View File

@@ -1,8 +1,8 @@
#!/usr/bin/env bash
# MySQL-BU Loader
# NodeMgmt Loader
source /opt/nodemgmt/settings.conf
cd /opt/nodemgmt
source /opt/idssys/nodemgmt/settings.conf
cd /opt/idssys/nodemgmt
#echo ""
if [ "$1" != "backup" ]; then
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then
@@ -15,7 +15,6 @@ if [ "$1" != "backup" ]; then
#echo ""
#echo -e "\e[92m\e[1mLinUPx update completed\e[0m"
fi
git submodule foreach git pull origin master
fi
./nodemgmt-scripts.sh $1 $2
exit 0