wip
This commit is contained in:
parent
8a3c354254
commit
6aaf86df78
|
@ -2,22 +2,18 @@
|
|||
|
||||
export wp_user='admin'
|
||||
export wp_pass='admin'
|
||||
export wp_email='myemail@isnet.uk'
|
||||
export wp_email='myemail@example.com'
|
||||
|
||||
export wp_version='latest'
|
||||
export wp_path='/var/www/html/wordpress'
|
||||
export wp_locale='en_GB'
|
||||
export wp_title='The WordPress'
|
||||
|
||||
export wp_db_name='wordpress'
|
||||
export wp_db_user='wordpress'
|
||||
export wp_db_pass='wordpress'
|
||||
export wp_title='The Campsite Bible'
|
||||
|
||||
## list of themes to install - first one will be activated
|
||||
export wp_themes="twentytwenty"
|
||||
|
||||
## list of plugins to install
|
||||
export wp_plugins="akismet all-in-one-seo-pack"
|
||||
export wp_plugins="geodirectory"
|
||||
|
||||
## list of plugins to install and activate
|
||||
export wp_plugins_active=""
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# remote specific options
|
||||
|
||||
#export domain='test123.example.com'
|
||||
#export url='http://test123.example.com'
|
||||
export domain='wordpress-453075-1468300.cloudwaysapps.com.example.com'
|
||||
export url='https://wordpress-453075-1468300.cloudwaysapps.com.example.com'
|
||||
|
||||
## user configuration
|
||||
## uncomment to set user
|
||||
|
|
|
@ -1,23 +1,19 @@
|
|||
## wordpress configuration - uncomment if using wordpress
|
||||
|
||||
# export wp_user='admin'
|
||||
# export wp_pass='admin'
|
||||
# export wp_email='myemail@isnet.uk'
|
||||
export wp_user='cloudways@rayelliott.dev'
|
||||
export wp_pass='McXNn4vgua'
|
||||
export wp_email='myemail@example.com'
|
||||
|
||||
# export wp_version='latest'
|
||||
# export wp_path='/var/www/html/wordpress'
|
||||
# export wp_locale='en_GB'
|
||||
# export wp_title='The WordPress'
|
||||
|
||||
# export wp_db_name='wordpress'
|
||||
# export wp_db_user='wordpress'
|
||||
# export wp_db_pass='wordpress'
|
||||
export wp_version='latest'
|
||||
export wp_path='/home/453075.cloudwaysapps.com/mhhusspndh/public_html'
|
||||
export wp_locale='en_GB'
|
||||
export wp_title='The Campsite Bible'
|
||||
|
||||
## list of themes to install - first one will be activated
|
||||
# export wp_themes="twentytwenty"
|
||||
export wp_themes="twentytwenty"
|
||||
|
||||
## list of plugins to install
|
||||
# export wp_plugins="akismet all-in-one-seo-pack"
|
||||
export wp_plugins="geodirectory breeze malcare-security"
|
||||
|
||||
## list of plugins to install and activate
|
||||
# export wp_plugins_active=""
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
echo "Removing WordPress .."
|
||||
|
||||
# check we have ssh access
|
||||
[ -z "$ssh_user" ] && echo "Error: no user ssh configuration specified" && exit 5
|
||||
|
||||
_mysql_cmd="mysql -u$db_user -p$db_pass -e "
|
||||
|
||||
ssh -T $ssh_user << EOSSH
|
||||
# remove database
|
||||
if command -v mysql ; then
|
||||
$_mysql_cmd "DROP DATABASE $db_name;"
|
||||
$_mysql_cmd "CREATE DATABASE $db_name;"
|
||||
else
|
||||
echo "ERROR: mysql not found - aborting WordPress removal"
|
||||
exit 40
|
||||
fi
|
||||
# remove files
|
||||
rm -Rf $wp_path
|
||||
EOSSH
|
|
@ -1,3 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "Removing WordPress .."
|
||||
|
||||
# check we have ssh access
|
||||
|
|
Loading…
Reference in New Issue