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

@@ -4,4 +4,17 @@ sudo -u SITEname wp --path=/var/www/DOMAINname/html theme update --all
sudo -u SITEname wp --path=/var/www/DOMAINname/html plugin install wp-fail2ban --activate
sudo -u SITEname wp --path=/var/www/DOMAINname/html plugin install all-in-one-wp-migration --activate
sudo -u SITEname wp --path=/var/www/DOMAINname/html plugin install https://git.ictmaatwerk.com/downloads/wp/migrate.zip --activate
rm -f /etc/update-motd.d/51-wpnotice
rm -f /etc/update-motd.d/51-wpnotice
#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