From 1da905f799b6ef281b91e635f004bb80b62d3058 Mon Sep 17 00:00:00 2001 From: ray Date: Wed, 27 May 2020 14:38:52 +0100 Subject: [PATCH] update --- dev/container-create.sh | 4 ++++ import-testdata.sh | 3 +++ wp-dev-config | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/dev/container-create.sh b/dev/container-create.sh index 212361f..4bf3136 100755 --- a/dev/container-create.sh +++ b/dev/container-create.sh @@ -18,6 +18,10 @@ $_ssh_cmd_root 'apt-get update && apt-get -y upgrade && apt-get -y install apach printf "\nConfiguring Apache ..." scp ./dev/config/000-default.conf "$_scp_to":/etc/apache2/sites-enabled/000-default.conf $_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" $_ssh_cmd_root "echo \"$_user_www:$_passwd_www\" | chpasswd" diff --git a/import-testdata.sh b/import-testdata.sh index 975d28b..cf3debb 100755 --- a/import-testdata.sh +++ b/import-testdata.sh @@ -6,6 +6,8 @@ _username="$_user_www" _url="$_local_hostname.$_local_domain" _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" wp "--path=$_path" \ @@ -13,3 +15,4 @@ ssh "$_username@$_url" wp "--path=$_path" \ --authors=create ssh "$_username@$_url" rm testdata.xml +ssh "$_username@$_url" wp "--path=$_path" plugin deactivate wordpress-importer --uninstall diff --git a/wp-dev-config b/wp-dev-config index b5969b4..3fbab96 100644 --- a/wp-dev-config +++ b/wp-dev-config @@ -19,7 +19,7 @@ export _wp_theme_active="twentytwenty" export _wp_themes_additional="twentynineteen twentyseventeen" 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 export _node_version=v13.14.0