install wp-cli during initial setup

This commit is contained in:
VirtuBox
2019-03-04 13:57:59 +01:00
parent d21be1ce63
commit b6eacac49a

View File

@@ -678,8 +678,7 @@ wo_git_init()
}> /dev/null }> /dev/null
} }
if [ ! -x /usr/local/bin/ee ]; then if [ ! -f /usr/local/bin/wo ]; then
if [ ! -x /usr/local/bin/wo ]; then
wo_lib_echo "Installing depedencies" | tee -ai $wo_install_log wo_lib_echo "Installing depedencies" | tee -ai $wo_install_log
wo_install_dep | tee -ai $wo_install_log wo_install_dep | tee -ai $wo_install_log
wo_lib_echo "Installing WordOps $wo_branch" | tee -ai $wo_install_log wo_lib_echo "Installing WordOps $wo_branch" | tee -ai $wo_install_log
@@ -688,7 +687,6 @@ if [ ! -x /usr/local/bin/ee ]; then
secure_wo_db | tee -ai $EE_INSTALL_LOG secure_wo_db | tee -ai $EE_INSTALL_LOG
wo_git_init | tee -ai $wo_install_log wo_git_init | tee -ai $wo_install_log
wo_update_wp_cli | tee -ai $wo_install_log wo_update_wp_cli | tee -ai $wo_install_log
fi
else else
wo -v 2>&1 | grep $wo_version_new &>> /dev/null wo -v 2>&1 | grep $wo_version_new &>> /dev/null
if [[ $? -ne 0 ]];then if [[ $? -ne 0 ]];then