Browse Source

Fix ee site update example.com --password

next
Mitesh Shah 10 years ago
parent
commit
8504a0c7b5
  1. 2
      bin/easyengine
  2. 4
      src/modules/site/ee_mod_site_option.sh
  3. 4
      src/modules/site/update/ee_mod_site_update_password.sh

2
bin/easyengine

@ -689,6 +689,8 @@ elif [ "$EE_FIRST" = "site" ]; then
# Display Success Message
ee_lib_echo_info "Successfully Updated Website: http://$EE_WWW_DOMAIN"
elif [[ "$EE_SECOND" = "update" && "$EE_SITE_CREATE_OPTION" = "--password" ]]; then
ee_lib_echo "This option is needed for updating WordPress website password" &> /dev/null
else
ee_lib_error "Invalid option, exit status = " $?
fi

4
src/modules/site/ee_mod_site_option.sh

@ -36,7 +36,9 @@ function ee_mod_site_option()
fi
# Kick out for invalid cache option
if [[ "$EE_SITE_CREATE_OPTION" != "--html" && "$EE_SITE_CREATE_OPTION" != "--php" && "$EE_SITE_CREATE_OPTION" != "--mysql" && "$EE_SITE_CREATE_OPTION" != "--wp" && "$EE_SITE_CREATE_OPTION" != "--wpsubdir" && "$EE_SITE_CREATE_OPTION" != "--wpsubdomain" ]]; then
if [[ "$EE_SECOND" = "update" && "$EE_SITE_CREATE_OPTION" = "--password" ]]; then
ee_lib_echo "This option is needed for updating WordPress website password" &> /dev/null
elif [[ "$EE_SITE_CREATE_OPTION" != "--html" && "$EE_SITE_CREATE_OPTION" != "--php" && "$EE_SITE_CREATE_OPTION" != "--mysql" && "$EE_SITE_CREATE_OPTION" != "--wp" && "$EE_SITE_CREATE_OPTION" != "--wpsubdir" && "$EE_SITE_CREATE_OPTION" != "--wpsubdomain" ]]; then
ee_lib_error "Invalid website type $EE_SITE_CREATE_OPTION, exit status = " $?
elif [[ "$EE_SITE_CREATE_OPTION" = "--html" || "$EE_SITE_CREATE_OPTION" = "--php" || "$EE_SITE_CREATE_OPTION" = "--mysql" ]] && [ -n "$EE_SITE_CACHE_OPTION" ]; then
ee_lib_error "Invalid cache option $EE_SITE_CACHE_OPTION for $EE_SITE_CREATE_OPTION website, exit status = " $?

4
src/modules/site/update/ee_mod_site_update_password.sh

@ -16,7 +16,7 @@ ee_mod_site_update_password()
# If user enter ? mark then show list of WordPress users
if [ "$ee_wp_user" = "?" ]; then
ee_lib_echo "List of WordPress users:"
wp --allow-root user list --fields=user_login
wp --allow-root user list --fields=user_login | grep -v user_login
read -p "Provide WordPress user name [admin]: " ee_wp_user
fi
@ -35,7 +35,7 @@ ee_mod_site_update_password()
ee_lib_error "Password Unchanged. Hint : Your password must be 8 characters long, exit status = " $?
fi
else
ee_lib_error "Invalid WordPress user $ee_wp_user for $EE_DOMAIN, exit status = " $?
ee_lib_error "Invalid WordPress user $ee_wp_user for $EE_DOMAIN, exit status = " $?
fi
fi
}

Loading…
Cancel
Save