Fixed Motd on install and remove var ignphpcms

Remove var 'ignphpcms' because it was unused
This commit is contained in:
2021-02-11 13:29:30 +01:00
parent a970d1a721
commit 10a2079110

View File

@@ -1,8 +1,6 @@
mrepo=https://git.ictmaatwerk.com/VPS-scripts/Backup-Util mrepo=https://git.ictmaatwerk.com/VPS-scripts/Backup-Util
mbranch=master mbranch=master
if [ -z ${ignphpcms+x} ]; then ignphpcms=0;fi
if [ $ignphpcms != 1 ]; then
############ ############
# lftp # # lftp #
############ ############
@@ -32,7 +30,8 @@ systemctl restart cron
curl --retry 7 --retry-delay 5 -s "$mrepo"/raw/branch/"$mbranch"/Backup-Util.sh -o /opt/BackupUtil/Backup-Util.sh curl --retry 7 --retry-delay 5 -s "$mrepo"/raw/branch/"$mbranch"/Backup-Util.sh -o /opt/BackupUtil/Backup-Util.sh
curl --retry 7 --retry-delay 5 -s "$mrepo"/raw/branch/"$mbranch"/config/Backup-Util/Backup-Util.unconfigured -o /opt/BackupUtil/Backup-Util.conf curl --retry 7 --retry-delay 5 -s "$mrepo"/raw/branch/"$mbranch"/config/Backup-Util/Backup-Util.unconfigured -o /opt/BackupUtil/Backup-Util.conf
sed -i -e 's/PASSword/'$password'/g' -e 's/HOSTNAME/'$(hostname -s)'/g' /opt/BackupUtil/Backup-Util.conf sed -i -e 's/PASSword/'$password'/g' -e 's/HOSTNAME/'$(hostname -s)'/g' /opt/BackupUtil/Backup-Util.conf
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
################################### ###################################
@@ -42,7 +41,5 @@ fi
if [ -z "${itype}" ]; then if [ -z "${itype}" ]; then
if [ -z ${db_suffix+x} ]; then db_suffix=`expr $(ls -l /var/www | grep -c ^d) - 1`;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"/CMSHook-conf.sh) source <(curl --retry 7 --retry-delay 5 -s "$mrepo"/raw/branch/"$mbranch"/CMSHook-conf.sh)
fi fi