updated postfix module and fixed CMS motd
This commit is contained in:
@@ -41,9 +41,9 @@ chown "$sitename":"$sitename" -R /var/www/"$domain"/html
|
||||
#Makeing nextcloud Finalize script and setting login Notice
|
||||
curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/CMS/nextcloud/nextcloud-init.sh -o ~/NextcloudInit-"$sitename".sh
|
||||
sed -i -e 's/DOMAINname/'$domain'/' -e 's/SITEname/'$sitename'/' ~/NextcloudInit-"$sitename".sh
|
||||
curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/CMS/nextcloud/MotdNextCloud -o /etc/update-motd.d/51-nextnotice
|
||||
sed -i -e 's/SITEname/'$sitename'/' /etc/update-motd.d/51-nextnotice
|
||||
chmod +x /etc/update-motd.d/51-nextnotice
|
||||
curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/CMS/nextcloud/MotdNextCloud -o /etc/update-motd.d/51-nextnotice-"$sitename"
|
||||
sed -i -e 's/SITEname/'$sitename'/' /etc/update-motd.d/51-nextnotice-"$sitename"
|
||||
chmod +x /etc/update-motd.d/51-nextnotice-"$sitename"
|
||||
|
||||
|
||||
#Nextcloud logging location
|
||||
|
||||
@@ -17,7 +17,7 @@ else
|
||||
fi
|
||||
|
||||
echo "*/5 * * * * SITEname php -f /var/www/DOMAINname/html/cron.php > /dev/null 2>&1" >> /etc/crontab
|
||||
rm -f /etc/update-motd.d/51-nextnotice
|
||||
rm -f /etc/update-motd.d/51-nextnotice-SITEname
|
||||
|
||||
#Remove script
|
||||
while true; do
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/CMS/nextcloud/Nginx-unconfigured -o /tmp/nginx-siteconf
|
||||
sed -i -e 's/PHPver/'$phpver'/g' -e 's/DOMAINname/'$domain'/g' -e 's/SITEname/'$sitename'/g' /tmp/nginx-siteconf
|
||||
sed -i -e "0,/^#ConfHere/s/\(^#Conf.*\)/#ConfHere1 /" -e '/#ConfHere1/ r /tmp/nginx-siteconf' -e '/#ConfHere/c\' /etc/nginx/sites-available/"$sitename"_"$site_ext"
|
||||
if [ $sslenable = 0 ]; then
|
||||
if [ $site_ext = nossl ]; then
|
||||
sed -i -e '/fastcgi_param HTTPS/c\# fastcgi_param HTTPS' /etc/nginx/sites-available/"$sitename"_nossl
|
||||
fi
|
||||
|
||||
|
||||
@@ -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"
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user