This commit is contained in:
Ray Elliott 2020-05-27 14:38:52 +01:00
parent efa14f496f
commit 1da905f799
3 changed files with 8 additions and 1 deletions

View File

@ -18,6 +18,10 @@ $_ssh_cmd_root 'apt-get update && apt-get -y upgrade && apt-get -y install apach
printf "\nConfiguring Apache ..." printf "\nConfiguring Apache ..."
scp ./dev/config/000-default.conf "$_scp_to":/etc/apache2/sites-enabled/000-default.conf scp ./dev/config/000-default.conf "$_scp_to":/etc/apache2/sites-enabled/000-default.conf
$_ssh_cmd_root 'a2enmod rewrite; systemctl restart apache2' $_ssh_cmd_root 'a2enmod rewrite; systemctl restart apache2'
# TODO - need to set post_max_size, temp dir, date.timezone etc
# TODO - not there's a php.ini in ../production/config/
# TODO - use thee settings
printf "\nSetting %s permissions ..." "$_user_www" printf "\nSetting %s permissions ..." "$_user_www"
$_ssh_cmd_root "echo \"$_user_www:$_passwd_www\" | chpasswd" $_ssh_cmd_root "echo \"$_user_www:$_passwd_www\" | chpasswd"

View File

@ -6,6 +6,8 @@ _username="$_user_www"
_url="$_local_hostname.$_local_domain" _url="$_local_hostname.$_local_domain"
_path='/var/www/html/wordpress' _path='/var/www/html/wordpress'
ssh "$_username@$_url" wp "--path=$_path" plugin install wordpress-importer --activate
ssh "$_username@$_url" wget -O testdata.xml 'https://raw.githubusercontent.com/WPTRT/theme-unit-test/master/themeunittestdata.wordpress.xml' ssh "$_username@$_url" wget -O testdata.xml 'https://raw.githubusercontent.com/WPTRT/theme-unit-test/master/themeunittestdata.wordpress.xml'
ssh "$_username@$_url" wp "--path=$_path" \ ssh "$_username@$_url" wp "--path=$_path" \
@ -13,3 +15,4 @@ ssh "$_username@$_url" wp "--path=$_path" \
--authors=create --authors=create
ssh "$_username@$_url" rm testdata.xml ssh "$_username@$_url" rm testdata.xml
ssh "$_username@$_url" wp "--path=$_path" plugin deactivate wordpress-importer --uninstall

View File

@ -19,7 +19,7 @@ export _wp_theme_active="twentytwenty"
export _wp_themes_additional="twentynineteen twentyseventeen" export _wp_themes_additional="twentynineteen twentyseventeen"
export _wp_plugins="better-wp-security wp-fastest-cache autodescription google-analytics-for-wordpress" export _wp_plugins="better-wp-security wp-fastest-cache autodescription google-analytics-for-wordpress"
export _wp_plugins_active="wp-mail-smtp gdpr-cookie-compliance regenerate-thumbnails" export _wp_plugins_active="wp-mail-smtp gdpr-cookie-compliance regenerate-thumbnails blocks-css blocks-animation theme-check"
# for nvim # for nvim
export _node_version=v13.14.0 export _node_version=v13.14.0