remove .com from wordpress url, reove allow-root optoins
This commit is contained in:
parent
43b8f400eb
commit
8d9df59d11
|
@ -41,7 +41,7 @@ define( 'WP_DEBUG_LOG', true );
|
||||||
PHP
|
PHP
|
||||||
wp core install \
|
wp core install \
|
||||||
--path="$wp_path" \
|
--path="$wp_path" \
|
||||||
--url="$domain".com \
|
--url="$domain" \
|
||||||
--title="$wp_title" \
|
--title="$wp_title" \
|
||||||
--admin_user="$wp_user" \
|
--admin_user="$wp_user" \
|
||||||
--admin_password="$wp_pass" \
|
--admin_password="$wp_pass" \
|
||||||
|
@ -53,7 +53,7 @@ printf "\nInstalling themes ..."
|
||||||
option='--activate'
|
option='--activate'
|
||||||
for theme in $wp_themes ; do
|
for theme in $wp_themes ; do
|
||||||
echo " installing $theme ..."
|
echo " installing $theme ..."
|
||||||
wp theme install $theme "$option" --path="$wp_path" --allow-root
|
wp theme install $theme "$option" --path="$wp_path"
|
||||||
option=''
|
option=''
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
@ -62,7 +62,7 @@ if [ -n "$wp_plugins" ] ; then
|
||||||
printf "\nInstalling plugins ..."
|
printf "\nInstalling plugins ..."
|
||||||
for plugin in $wp_plugins ; do
|
for plugin in $wp_plugins ; do
|
||||||
echo " installing $plugin ..."
|
echo " installing $plugin ..."
|
||||||
wp plugin install $plugin --path="$wp_path" --allow-root
|
wp plugin install $plugin --path="$wp_path"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ if [ -n "$wp_plugins_active" ] ; then
|
||||||
printf "\nInstalling plugins to activate ..."
|
printf "\nInstalling plugins to activate ..."
|
||||||
for plugin in $wp_plugins_active ; do
|
for plugin in $wp_plugins_active ; do
|
||||||
echo " installing $plugin ..."
|
echo " installing $plugin ..."
|
||||||
wp plugin install $plugin --activate --path="$wp_path" --allow-root
|
wp plugin install $plugin --activate --path="$wp_path"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -78,8 +78,8 @@ if [ -n "$wp_plugins_active" ] ; then
|
||||||
printf "\nUninstalling plugins ..."
|
printf "\nUninstalling plugins ..."
|
||||||
for plugin in $wp_plugins_uninstall ; do
|
for plugin in $wp_plugins_uninstall ; do
|
||||||
echo " installing $plugin ..."
|
echo " installing $plugin ..."
|
||||||
wp plugin deactivate $plugin --path="$wp_path" --allow-root
|
wp plugin deactivate $plugin --path="$wp_path"
|
||||||
wp plugin uninstall $plugin --path="$wp_path" --allow-root
|
wp plugin uninstall $plugin --path="$wp_path"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue