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-"$sitename"
|
||||
sed -i -e 's/SITEname/'$sitename'/' /etc/update-motd.d/51-nextnotice-"$sitename"
|
||||
chmod +x /etc/update-motd.d/51-nextnotice-"$sitename"
|
||||
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,8 @@ 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-SITEname
|
||||
sn2=SITEname
|
||||
rm -f /etc/update-motd.d/51-nextnotice-${sn2//_}
|
||||
|
||||
#Remove script
|
||||
while true; do
|
||||
|
||||
Reference in New Issue
Block a user