Added new backwards compatibility for Web-V2
This commit is contained in:
17
conf.sh
17
conf.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user