Removed motd for wordpress

functionality replaced moved to WP-init
This commit is contained in:
Bram Prieshof
2020-08-19 11:28:28 +02:00
parent fc02fc4361
commit 34199d829a

View File

@@ -46,11 +46,6 @@ chmod +x /etc/update-motd.d/51-bckupnotice
#CMS WP
if [ $CMS = "wordpress" ]; then
echo "SiteBackup -d $domain -sn $sitename -db wp_$db_suffix -sd /var/www/$domain/html -ai1 -wpupdate" >> /opt/BackupUtil/Backup-Util.conf
#MOTD Notice
echo 'printf $red "Please run bash ~/wp-backup-Init.sh after initialisation of WP"' >> /etc/update-motd.d/51-bckupnotice
echo 'printf "\n"' >> /etc/update-motd.d/51-bckupnotice
wget -q -t7 "$mrepo"/raw/branch/"$mbranch"/config/Motd/wp-backup-Init.sh -O /root/wp-backup-Init.sh
sed -i -e 's/DOMAINname/'$domain'/' -e 's/SITEname/'$sitename'/' /root/wp-backup-Init.sh
fi
#CMS None
if [ $CMS = "none" ]; then