Local to Git migration
This commit is contained in:
8
config/Motd/50-bckupnotice
Normal file
8
config/Motd/50-bckupnotice
Normal 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"
|
||||
10
config/Motd/wp-backup-Init.sh
Normal file
10
config/Motd/wp-backup-Init.sh
Normal 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
|
||||
Reference in New Issue
Block a user