Browse Source

Added ee stack remove remove/purge admin

old-stable
harshadyeola 10 years ago
parent
commit
b77b932450
  1. 37
      bin/easyengine

37
bin/easyengine

@ -126,7 +126,7 @@ elif [ "$EE_FIRST" = "stack" ] || [ "$EE_FIRST" = "system" ]; then
# Install WP-CLI # Install WP-CLI
ee_ven_install_wpcli ee_ven_install_wpcli
fi fi
if [ "$EE_THIRD" = "" ] || [ "$EE_THIRD" = "web" ] || [ "$EE_THIRD" = "admin-tools" ] || [ "$EE_THIRD" = "all" ]; then if [ "$EE_THIRD" = "" ] || [ "$EE_THIRD" = "web" ] || [ "$EE_THIRD" = "admin" ] || [ "$EE_THIRD" = "all" ]; then
# Install Adminer/phpMyAdmin/Utils # Install Adminer/phpMyAdmin/Utils
ee_ven_install_adminer ee_ven_install_adminer
ee_ven_install_phpmyadmin ee_ven_install_phpmyadmin
@ -134,7 +134,7 @@ elif [ "$EE_FIRST" = "stack" ] || [ "$EE_FIRST" = "system" ]; then
fi fi
# Display success message # Display success message
if [ "$EE_THIRD" != "all" ];then if [ "$EE_THIRD" != "all" ];then
ee_lib_echo "Successfully installed web server packages" ee_lib_echo "Successfully installed $([ "$EE_THIRD" != "" ] && echo $EE_THIRD || echo "web" ) server packages"
ee_lib_echo "Create your first WordPress site powered by NGINX using:" ee_lib_echo "Create your first WordPress site powered by NGINX using:"
ee_lib_echo_info "ee site create example.com --wp" ee_lib_echo_info "ee site create example.com --wp"
fi fi
@ -245,27 +245,32 @@ elif [ "$EE_FIRST" = "stack" ] || [ "$EE_FIRST" = "system" ]; then
elif [ "$EE_SECOND" = "purge" ];then elif [ "$EE_SECOND" = "purge" ];then
ee_lib_echo "$EE_THIRD successfully purged" ee_lib_echo "$EE_THIRD successfully purged"
fi fi
elif [ "$EE_THIRD" = "" ] || [ "$EE_THIRD" = "web" ] || [ "$EE_THIRD" = "all" ]; then elif [ "$EE_THIRD" = "" ] || [ "$EE_THIRD" = "web" ] || [ "$EE_THIRD" = "admin" ] || [ "$EE_THIRD" = "all" ]; then
# Remove/Purge NGINX/PHP/MySQL/Postfix package if [ "$EE_THIRD" = "" ] || [ "$EE_THIRD" = "web" ] || [ "$EE_THIRD" = "all" ]; then
ee_mod_remove_nginx # Remove/Purge NGINX/PHP/MySQL/Postfix package
ee_mod_remove_php ee_mod_remove_nginx
ee_mod_remove_mysql ee_mod_remove_php
ee_mod_remove_postfix ee_mod_remove_mysql
ee_mod_remove_postfix
# Install Adminer/phpMyAdmin/WP-CLI/Utils
ee_ven_remove_adminer # Remove/Purge WP-CLI
ee_ven_remove_phpmyadmin ee_ven_remove_wpcli
ee_ven_remove_wpcli fi
ee_ven_remove_utils if [ "$EE_THIRD" = "" ] || [ "$EE_THIRD" = "web" ] || [ "$EE_THIRD" = "admin" ] || [ "$EE_THIRD" = "all" ]; then
# Remove/Purge Adminer/phpMyAdmin/Utils
ee_ven_remove_adminer
ee_ven_remove_phpmyadmin
ee_ven_remove_utils
fi
# Execute: apt-get autoremove # Execute: apt-get autoremove
ee_lib_autoremove ee_lib_autoremove
# Display success message # Display success message
if [ "$EE_SECOND" = "remove" ];then if [ "$EE_SECOND" = "remove" ];then
ee_lib_echo "Successfully removed web packages" ee_lib_echo "Successfully removed $([ "$EE_THIRD" != "" ] && echo $EE_THIRD || echo "web" ) packages"
elif [ "$EE_SECOND" = "purge" ];then elif [ "$EE_SECOND" = "purge" ];then
ee_lib_echo "Successfully purged web packages" ee_lib_echo "Successfully purged $EE_THIRD packages"
fi fi
fi fi
if [ "$EE_THIRD" = "all" ] || [ "$EE_THIRD" = "mail" ];then if [ "$EE_THIRD" = "all" ] || [ "$EE_THIRD" = "mail" ];then

Loading…
Cancel
Save