Added new backwards compatibility for Web-V2

This commit is contained in:
2021-02-10 14:39:20 +01:00
parent 4e4f52bc1d
commit a970d1a721

17
conf.sh
View File

@@ -35,11 +35,14 @@ sed -i -e 's/PASSword/'$password'/g' -e 's/HOSTNAME/'$(hostname -s)'/g' /opt/Bac
fi
##############################
# Backup-util Site Setup #
##############################
###################################
# Backup-util Site Setup #
# (For backwards compatibility) #
###################################
if [ -z ${db_suffix+x} ]; then db_suffix=`expr $(ls -l /var/www | grep -c ^d) - 1`;fi
curl --retry 7 --retry-delay 5 -s "$mrepo"/raw/branch/"$mbranch"/config/Motd/51-bckupnotice -o /etc/update-motd.d/51-bckupnotice
chmod +x /etc/update-motd.d/51-bckupnotice
source <(curl --retry 7 --retry-delay 5 -s "$mrepo"/raw/branch/"$mbranch"/CMSHook-conf.sh)
if [ -z "${itype}" ]; then
if [ -z ${db_suffix+x} ]; then db_suffix=`expr $(ls -l /var/www | grep -c ^d) - 1`;fi
curl --retry 7 --retry-delay 5 -s "$mrepo"/raw/branch/"$mbranch"/config/Motd/51-bckupnotice -o /etc/update-motd.d/51-bckupnotice
chmod +x /etc/update-motd.d/51-bckupnotice
source <(curl --retry 7 --retry-delay 5 -s "$mrepo"/raw/branch/"$mbranch"/CMSHook-conf.sh)
fi