From 2dbcae50ca6df75827adc23913b073626c5014be Mon Sep 17 00:00:00 2001 From: harshadyeola Date: Tue, 30 Sep 2014 11:48:49 +0530 Subject: [PATCH] Added ee stack install admin-tools --- bin/easyengine | 70 ++++++++++++++++++++++++++------------------------ 1 file changed, 37 insertions(+), 33 deletions(-) diff --git a/bin/easyengine b/bin/easyengine index db820c83..108a5be5 100644 --- a/bin/easyengine +++ b/bin/easyengine @@ -93,41 +93,45 @@ elif [ "$EE_FIRST" = "stack" ] || [ "$EE_FIRST" = "system" ]; then # Display success message ee_lib_echo "$EE_THIRD successfully installed" - elif [ "$EE_THIRD" = "" ] || [ "$EE_THIRD" = "web" ] || [ "$EE_THIRD" = "all" ]; then - # Setup NGINX/PHP/MySQL repository - ee_mod_repo_nginx - ee_mod_repo_php - ee_mod_repo_mysql - - # Fix GnuPG key - ee_lib_gpg_key_fix - - # Execute: apt-get update - ee_lib_apt_get_update - - # Install NGINX/PHP/MySQL/Postfix package - ee_mod_install_nginx - ee_mod_install_php - ee_mod_install_mysql - ee_mod_install_postfix - - # Setup NGINX/PHP/MySQL - ee_mod_setup_nginx - ee_mod_setup_php - ee_mod_setup_mysql - - # Restart NGINX/MySQL/Postfix - ee_lib_service nginx php5-fpm mysql restart - - # Initialize Git - ee_lib_git /etc/nginx/ /etc/php5/ /etc/mysql/ /etc/postfix "Initialize Git" + elif [ "$EE_THIRD" = "" ] || [ "$EE_THIRD" = "web" ] || [ "$EE_THIRD" = "admin-tools" ] || [ "$EE_THIRD" = "all" ]; then + if [ "$EE_THIRD" = "" ] || [ "$EE_THIRD" = "web" ] || [ "$EE_THIRD" = "all" ]; then + # Setup NGINX/PHP/MySQL repository + ee_mod_repo_nginx + ee_mod_repo_php + ee_mod_repo_mysql - # Install Adminer/phpMyAdmin/WP-CLI/Utils - ee_ven_install_adminer - ee_ven_install_phpmyadmin - ee_ven_install_wpcli - ee_ven_install_utils + # Fix GnuPG key + ee_lib_gpg_key_fix + + # Execute: apt-get update + ee_lib_apt_get_update + # Install NGINX/PHP/MySQL/Postfix package + ee_mod_install_nginx + ee_mod_install_php + ee_mod_install_mysql + ee_mod_install_postfix + + # Setup NGINX/PHP/MySQL + ee_mod_setup_nginx + ee_mod_setup_php + ee_mod_setup_mysql + + # Restart NGINX/MySQL/Postfix + ee_lib_service nginx php5-fpm mysql restart + + # Initialize Git + ee_lib_git /etc/nginx/ /etc/php5/ /etc/mysql/ /etc/postfix "Initialize Git" + + # Install WP-CLI + ee_ven_install_wpcli + fi + if [ "$EE_THIRD" = "" ] || [ "$EE_THIRD" = "web" ] || [ "$EE_THIRD" = "admin-tools" ] || [ "$EE_THIRD" = "all" ]; then + # Install Adminer/phpMyAdmin/Utils + ee_ven_install_adminer + ee_ven_install_phpmyadmin + ee_ven_install_utils + fi # Display success message if [ "$EE_THIRD" != "all" ];then ee_lib_echo "Successfully installed web server packages"