folder change
This commit is contained in:
@@ -2,13 +2,12 @@
|
|||||||
# MySQL-BU - MySQL Backup Scripts
|
# MySQL-BU - MySQL Backup Scripts
|
||||||
|
|
||||||
action="$1"
|
action="$1"
|
||||||
FOLDER='/opt/nodemgmt'
|
|
||||||
VERS='1.01272019'
|
VERS='1.01272019'
|
||||||
CERT_DAEMON='/usr/bin/certbot'
|
CERT_DAEMON='/usr/bin/certbot'
|
||||||
|
|
||||||
source ${folder}/settings.conf
|
source /opt/idssys/nodemgmt/settings.conf
|
||||||
source ${folder}/ids-defaults/colors.conf
|
source /opt/idssys/defaults/colors.conf
|
||||||
source ${folder}/ids-defaults/default.conf
|
source /opt/idssys/defaults/default.conf
|
||||||
|
|
||||||
# ========================================================= #
|
# ========================================================= #
|
||||||
|
|
||||||
|
|||||||
7
run.sh
7
run.sh
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# MySQL-BU Loader
|
# NodeMgmt Loader
|
||||||
|
|
||||||
source /opt/nodemgmt/settings.conf
|
source /opt/idssys/nodemgmt/settings.conf
|
||||||
cd /opt/nodemgmt
|
cd /opt/idssys/nodemgmt
|
||||||
#echo ""
|
#echo ""
|
||||||
if [ "$1" != "backup" ]; then
|
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
|
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 ""
|
||||||
#echo -e "\e[92m\e[1mLinUPx update completed\e[0m"
|
#echo -e "\e[92m\e[1mLinUPx update completed\e[0m"
|
||||||
fi
|
fi
|
||||||
git submodule foreach git pull origin master
|
|
||||||
fi
|
fi
|
||||||
./nodemgmt-scripts.sh $1 $2
|
./nodemgmt-scripts.sh $1 $2
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user