From 8d9df59d115d30430b9ea06c97dc9d2d1e16d50f Mon Sep 17 00:00:00 2001 From: ray Date: Fri, 4 Sep 2020 13:34:57 +0100 Subject: [PATCH] remove .com from wordpress url, reove allow-root optoins --- install/scripts/install-wordpress.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install/scripts/install-wordpress.sh b/install/scripts/install-wordpress.sh index a849647..e3609f0 100755 --- a/install/scripts/install-wordpress.sh +++ b/install/scripts/install-wordpress.sh @@ -41,7 +41,7 @@ define( 'WP_DEBUG_LOG', true ); PHP wp core install \ --path="$wp_path" \ - --url="$domain".com \ + --url="$domain" \ --title="$wp_title" \ --admin_user="$wp_user" \ --admin_password="$wp_pass" \ @@ -53,7 +53,7 @@ printf "\nInstalling themes ..." option='--activate' for theme in $wp_themes ; do echo " installing $theme ..." - wp theme install $theme "$option" --path="$wp_path" --allow-root + wp theme install $theme "$option" --path="$wp_path" option='' done fi @@ -62,7 +62,7 @@ if [ -n "$wp_plugins" ] ; then printf "\nInstalling plugins ..." for plugin in $wp_plugins ; do echo " installing $plugin ..." - wp plugin install $plugin --path="$wp_path" --allow-root + wp plugin install $plugin --path="$wp_path" done fi @@ -70,7 +70,7 @@ if [ -n "$wp_plugins_active" ] ; then printf "\nInstalling plugins to activate ..." for plugin in $wp_plugins_active ; do echo " installing $plugin ..." - wp plugin install $plugin --activate --path="$wp_path" --allow-root + wp plugin install $plugin --activate --path="$wp_path" done fi @@ -78,8 +78,8 @@ if [ -n "$wp_plugins_active" ] ; then printf "\nUninstalling plugins ..." for plugin in $wp_plugins_uninstall ; do echo " installing $plugin ..." - wp plugin deactivate $plugin --path="$wp_path" --allow-root - wp plugin uninstall $plugin --path="$wp_path" --allow-root + wp plugin deactivate $plugin --path="$wp_path" + wp plugin uninstall $plugin --path="$wp_path" done fi