remove .com from wordpress url, reove allow-root optoins

This commit is contained in:
Ray Elliott 2020-09-04 13:34:57 +01:00
parent 43b8f400eb
commit 8d9df59d11
1 changed files with 6 additions and 6 deletions

View File

@ -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