update
This commit is contained in:
@@ -3,27 +3,16 @@
|
||||
|
||||
action="$1"
|
||||
FOLDER='/opt/idssys/mysqlbu'
|
||||
VERS='2.01292019'
|
||||
|
||||
VERS='2.45-05022023'
|
||||
|
||||
source /opt/idssys/defaults/colors.inc
|
||||
source /opt/idssys/defaults/default.inc
|
||||
if [ ! -f /opt/idssys/settings/mysqlbu.conf ]; then
|
||||
if [ ! -d /opt/idssys/settings ]; then
|
||||
mkdir /opt/idssys/settings
|
||||
fi
|
||||
mv /opt/idssys/mysqlbu/settings.conf /opt/idssys/settings/mysqlbu.conf
|
||||
fi
|
||||
source /opt/idssys/settings/mysqlbu.conf
|
||||
if [ ! -d "/opt/idssys/defaults" ]; then
|
||||
do_with_root set -eu
|
||||
do_with_root git clone https://git.schroedercity.com/voltron/iDS-Defaults.git /opt/idssys/defaults
|
||||
fi
|
||||
source /opt/idssys/mysqlbu/settings.conf
|
||||
|
||||
# ========================================================= #
|
||||
|
||||
if [ $(id -u) != "0" ]; then
|
||||
echo "Sorry, I need root privileges!"
|
||||
echo "Sorry bitch, I need root privileges!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
11
run.sh
11
run.sh
@@ -1,13 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
# MySQL-BU Loader
|
||||
|
||||
if [ -f /opt/idssys/settings/mysqlbu.conf ]; then
|
||||
mv /opt/idssys/settings/mysqlbu.conf /opt/idssys/mysqlbu/settings.conf
|
||||
fi
|
||||
|
||||
source /opt/idssys/defaults/colors.inc
|
||||
source /opt/idssys/defaults/default.inc
|
||||
if [ ! -f /opt/idssys/settings/mysqlbu.conf ]; then
|
||||
source /opt/idssys/mysqlbu/settings.conf
|
||||
else
|
||||
source /opt/idssys/settings/mysqlbu.conf
|
||||
fi
|
||||
source /opt/idssys/mysqlbu/settings.conf
|
||||
|
||||
#if [ "$1" != "backup" ]; then
|
||||
if curl -s --head --request GET https://git.schroedercity.com | grep "HTTP/2 200" > /dev/null; then
|
||||
echo -en "${idsCL[LightCyan]}Checking for updates...${idsCL[Default]}"
|
||||
|
||||
Reference in New Issue
Block a user