updated postfix module and fixed CMS motd

This commit is contained in:
2020-10-15 12:20:23 +02:00
parent b475a7f365
commit 8ad35db685
9 changed files with 24 additions and 13 deletions

View File

@@ -50,6 +50,6 @@ chown "$sitename":"$sitename" -R /var/www/"$domain"/html
#Makeing wordpress Finalize script and setting login Notice
curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/CMS/wordpress/wordpress-init.sh -o ~/WordpressInit-"$sitename".sh
sed -i -e 's/DOMAINname/'$domain'/' -e 's/SITEname/'$sitename'/' ~/WordpressInit-"$sitename".sh
curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/CMS/wordpress/MotdWordpress -o /etc/update-motd.d/51-wpnotice
sed -i -e 's/SITEname/'$sitename'/' /etc/update-motd.d/51-wpnotice
chmod +x /etc/update-motd.d/51-wpnotice
curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/CMS/wordpress/MotdWordpress -o /etc/update-motd.d/51-wpnotice-"$sitename"
sed -i -e 's/SITEname/'$sitename'/' /etc/update-motd.d/51-wpnotice-"$sitename"
chmod +x /etc/update-motd.d/51-wpnotice-"$sitename"

View File

@@ -6,7 +6,7 @@ sudo -u SITEname wp --path=/var/www/DOMAINname/html plugin install https://git.i
sudo -u SITEname wp --path=/var/www/DOMAINname/html cron event run wp_update_plugins
sudo -u SITEname wp --path=/var/www/DOMAINname/html plugin update --all
echo -e "\e[96m Please update all-in-one-wp-migration-unlimited plugin manually\e[39m"
rm -f /etc/update-motd.d/51-wpnotice
rm -f /etc/update-motd.d/51-wpnotice-SITEname
#Remove script
while true; do