Add: post-backup hook Renamed:setup cms-handeler

Added funtion for runing script after Backup
Renamed bck-util cms-handeler to CMSHook-conf for future compatibility
This commit is contained in:
2021-02-10 12:03:10 +01:00
parent b3d293b8c3
commit 4e4f52bc1d
4 changed files with 8 additions and 3 deletions

View File

@@ -42,4 +42,4 @@ fi
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"/cms-handeler.sh)
source <(curl --retry 7 --retry-delay 5 -s "$mrepo"/raw/branch/"$mbranch"/CMSHook-conf.sh)