Added new backwards compatibility for Web-V2
This commit is contained in:
15
conf.sh
15
conf.sh
@@ -35,11 +35,14 @@ sed -i -e 's/PASSword/'$password'/g' -e 's/HOSTNAME/'$(hostname -s)'/g' /opt/Bac
|
|||||||
fi
|
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
|
if [ -z "${itype}" ]; then
|
||||||
curl --retry 7 --retry-delay 5 -s "$mrepo"/raw/branch/"$mbranch"/config/Motd/51-bckupnotice -o /etc/update-motd.d/51-bckupnotice
|
if [ -z ${db_suffix+x} ]; then db_suffix=`expr $(ls -l /var/www | grep -c ^d) - 1`;fi
|
||||||
chmod +x /etc/update-motd.d/51-bckupnotice
|
curl --retry 7 --retry-delay 5 -s "$mrepo"/raw/branch/"$mbranch"/config/Motd/51-bckupnotice -o /etc/update-motd.d/51-bckupnotice
|
||||||
source <(curl --retry 7 --retry-delay 5 -s "$mrepo"/raw/branch/"$mbranch"/CMSHook-conf.sh)
|
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