|
|
@ -447,7 +447,9 @@ elif [ "$EE_FIRST" = "site" ]; then |
|
|
|
ee_lib_echo_info "HTTP authentication password: $(grep "HTTP authentication password:" $EE_COMMAND_LOG | tail -n1 | awk '{print $4}')" |
|
|
|
fi |
|
|
|
# Display Success Message |
|
|
|
if [ "$EE_MIGRATE" != "True" ]; then |
|
|
|
ee_lib_echo_info "Successfully Created New Website: http://$EE_WWW_DOMAIN" |
|
|
|
fi |
|
|
|
elif [ "$EE_SITE_CREATE_OPTION" = "--wp" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdir" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdomain" ]; then |
|
|
|
if [ "$EE_SITE_CACHE_OPTION" = "--basic" ] || [ "$EE_SITE_CACHE_OPTION" = "--wpsc" ] || [ "$EE_SITE_CACHE_OPTION" = "--w3tc" ] || [ "$EE_SITE_CACHE_OPTION" = "--wpfc" ]; then |
|
|
|
|
|
|
@ -459,8 +461,11 @@ elif [ "$EE_FIRST" = "site" ]; then |
|
|
|
ee_lib_check_domain |
|
|
|
ee_mod_setup_domain |
|
|
|
|
|
|
|
# If we are migrating site then Wordpress installation is not required |
|
|
|
if [ "$EE_MIGRATE" != "True" ]; then |
|
|
|
# Setup WordPress |
|
|
|
ee_mod_setup_wordpress |
|
|
|
fi |
|
|
|
|
|
|
|
# Adjust permission |
|
|
|
ee_lib_permissions |
|
|
@ -477,6 +482,7 @@ elif [ "$EE_FIRST" = "site" ]; then |
|
|
|
ee_lib_echo_info "HTTP authentication password: $(grep "HTTP authentication password:" $EE_COMMAND_LOG | tail -n1 | awk '{print $4}')" |
|
|
|
fi |
|
|
|
|
|
|
|
if [ "$EE_MIGRATE" != "True" ]; then |
|
|
|
# Display WordPress credential |
|
|
|
echo |
|
|
|
ee_lib_echo_info "WordPress Admin Username: $EE_WP_USER" |
|
|
@ -490,6 +496,7 @@ elif [ "$EE_FIRST" = "site" ]; then |
|
|
|
ee_lib_echo_info "Successfully created new website: http://$EE_WWW_DOMAIN" |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
elif [ "$EE_SECOND" = "delete" ]; then |
|
|
|
# Check the website name is empty or not |
|
|
|
EE_DELETE_ARGS=$EE_FOURTH |
|
|
@ -721,6 +728,8 @@ elif [ "$EE_FIRST" = "site" ]; then |
|
|
|
fi |
|
|
|
|
|
|
|
elif [ "$EE_SECOND" = "migrate" ]; then |
|
|
|
export $EE_MIGRATE="True" |
|
|
|
|
|
|
|
# Configure variables |
|
|
|
EE_DOMAIN_CHECK=$EE_THIRD |
|
|
|
ee_lib_check_domain |
|
|
@ -760,6 +769,9 @@ elif [ "$EE_FIRST" = "site" ]; then |
|
|
|
# Migrate Data |
|
|
|
ee_mod_migrate_data |
|
|
|
|
|
|
|
# Create site |
|
|
|
ee site create $EE_DOMAIN $EE_SITE_CREATE_OPTION $EE_SITE_CACHE_OPTION |
|
|
|
|
|
|
|
else |
|
|
|
ee_lib_echo "ee site commands:" |
|
|
|
ee_lib_echo_escape "\tcd\tSwitch to website root directory" |
|
|
|