Local to Git migration

This commit is contained in:
Bram Prieshof
2020-06-11 14:04:30 +02:00
parent cc692b3de3
commit d7fc07a0e7
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
#!/bin/sh
red='\e[1;31m%s\e[0m\n'
printf "\n"
printf $red "Backups are partilay set up,"
printf $red "Please check the config to confim the settings"
printf "\n"
printf $red "Remove me by running rm /etc/update-motd.d/50-bckupNotice"
printf "\n"

View File

@@ -0,0 +1,10 @@
#########################
# wp-cli Site Setup #
#########################
wp cli update
sudo -u www-data wp --path=/var/www/DOMAINname/html plugin install all-in-one-wp-migration --activate
sudo -u www-data wp --path=/var/www/DOMAINname/html plugin install https://git.ictmaatwerk.com/downloads/wp/migrate.zip --activate
sudo -u www-data wp --path=/var/www/DOMAINname/html plugin update --all
sudo -u www-data wp --path=/var/www/DOMAINname/html core update
echo [Ok]
rm /root/wp-backup-Init.sh