This commit is contained in:
2023-05-02 22:00:05 -05:00
parent d6e9a63ca8
commit 3c9353b14f
2 changed files with 9 additions and 19 deletions

View File

@@ -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
View File

@@ -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]}"