Added init sctipt removal feature

This commit is contained in:
2020-09-03 13:18:14 +02:00
parent 59bc06569b
commit 14d066a6f9
7 changed files with 49 additions and 8 deletions

View File

@@ -17,4 +17,17 @@ 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
#Remove script
while true; do
read -p "Remove this script -> yes/no?" yn
case $yn in
[Nn]* )
break;;
[Yy]* )
rm -- "$0"
break;;
* )echo "Choose yes or no.";;
esac
done