Browse Source

Display Success Messages

old-stable
Mitesh Shah 12 years ago
parent
commit
5fa194b078
  1. 61
      setup/engine

61
setup/engine

@ -161,6 +161,9 @@ then
echo -e "\033[34m Installing Nginx... \e[0m"
sudo apt-get -y install nginx-custom || OwnError "Unable To Install Nginx"
# Display Success Message
echo -e "\033[34m Nginx Successfully Installed \e[0m"
elif [ "$3" = "php" ]
then
@ -194,6 +197,10 @@ then
php5-cgi php5-curl php5-gd php5-cli php5-fpm php-apc php-pear \
php5-dev php5-imap php5-mcrypt || OwnError "Unable To Install PHP5"
# Display Success Message
echo -e "\033[34m PHP5 Successfully Installed \e[0m"
elif [ "$3" = "mysql" ]
then
@ -206,6 +213,9 @@ then
sudo apt-get -y install mysql-server mysqltuner \
|| OwnError "Unable To Install MySQL"
# Display Success Message
echo -e "\033[34m MySQL Successfully Installed \e[0m"
elif [ "$3" = "postfix" ]
then
# Update The APT Cache
@ -216,6 +226,9 @@ then
echo -e "\033[34m Installing Postfix... \e[0m"
sudo apt-get -y install postfix || OwnError "Unable To Install Postfix"
# Display Success Message
echo -e "\033[34m Postfix Successfully Installed \e[0m"
elif [ "$3" = "--all" ]
then
@ -255,6 +268,9 @@ then
php5-dev php5-imap php5-mcrypt mysql-server mysqltuner postfix \
|| OwnError "Unable To Install Nginx PHP5 MySQL Postfix"
# Display Success Message
echo -e "\033[34m Nginx PHP5 MySQL Postfix Successfully Installed \e[0m"
else
EngineHelp
fi
@ -271,6 +287,9 @@ then
echo -e "\033[34m Removing Nginx... \e[0m"
sudo apt-get -y remove nginx || OwnError "Unable To Remove Nginx"
# Display Success Message
echo -e "\033[34m Nginx Successfully Removed \e[0m"
elif [ "$3" = "php" ]
then
@ -280,6 +299,9 @@ then
php5-cgi php5-curl php5-gd php5-cli php5-fpm php-apc php-pear \
php5-dev php5-imap php5-mcrypt || OwnError "Unable To Remove PHP5"
# Display Success Message
echo -e "\033[34m PHP5 Successfully Removed \e[0m"
elif [ "$3" = "mysql" ]
then
@ -288,6 +310,9 @@ then
sudo apt-get -y remove mysql-server mysqltuner \
|| OwnError "Unable To Remove MySQL"
# Display Success Message
echo -e "\033[34m MySQL Successfully Removed \e[0m"
elif [ "$3" = "postfix" ]
then
@ -295,6 +320,9 @@ then
echo -e "\033[34m Removing Postfix... \e[0m"
sudo apt-get -y remove postfix || OwnError "Unable To Remove Postfix"
# Display Success Message
echo -e "\033[34m Postfix Successfully Removed \e[0m"
elif [ "$3" = "--all" ]
then
@ -305,6 +333,9 @@ then
php5-dev php5-imap php5-mcrypt mysql-server mysqltuner postfix \
|| OwnError "Unable To Remove Nginx PHP5 MySQL Postfix"
# Display Success Message
echo -e "\033[34m Nginx PHP5 MySQL Postfix Successfully Removed \e[0m"
else
EngineHelp
fi
@ -321,6 +352,9 @@ then
echo -e "\033[34m Purge Nginx... \e[0m"
sudo apt-get -y remove --purge nginx || OwnError "Unable To Purge Nginx"
# Display Success Message
echo -e "\033[34m Nginx Successfully Purged \e[0m"
elif [ "$3" = "php" ]
then
@ -330,6 +364,9 @@ then
php5-cgi php5-curl php5-gd php5-cli php5-fpm php-apc php-pear \
php5-dev php5-imap php5-mcrypt || OwnError "Unable To Purge PHP5"
# Display Success Message
echo -e "\033[34m PHP5 Successfully Purged \e[0m"
elif [ "$3" = "mysql" ]
then
@ -338,6 +375,9 @@ then
sudo apt-get -y remove --purge mysql-server mysqltuner \
|| OwnError "Unable To Purge MySQL"
# Display Success Message
echo -e "\033[34m MySQL Successfully Purged \e[0m"
elif [ "$3" = "postfix" ]
then
@ -345,6 +385,9 @@ then
echo -e "\033[34m Purge Postfix... \e[0m"
sudo apt-get -y remove --purge postfix || OwnError "Unable To Purge Postfix"
# Display Success Message
echo -e "\033[34m Postfix Successfully Purged \e[0m"
elif [ "$3" = "--all" ]
then
@ -355,6 +398,9 @@ then
php5-dev php5-imap php5-mcrypt mysql-server mysqltuner postfix \
|| OwnError "Unable To Purge Nginx PHP5 MySQL Postfix"
# Display Success Message
echo -e "\033[34m Nginx PHP5 MySQL Postfix Successfully Purged \e[0m"
else
EngineHelp
fi
@ -502,6 +548,9 @@ then
# Start PHP-FPM If Not Running
PHPSTART
# Display Success Message
echo -e "\033[34m $DOMAIN Successfully Created \e[0m"
else
EngineHelp
fi
@ -537,6 +586,9 @@ then
# Reload Nginx Configuration
NGINXRELOAD
# Display Success Message
echo -e "\033[34m Nginx Configuration For $DOMAIN Is Successfully Updated \e[0m"
elif [ "$5" = "wpsuper" ]
then
@ -554,6 +606,9 @@ then
# Reload Nginx Configuration
NGINXRELOAD
# Display Success Message
echo -e "\033[34m Nginx Configuration For $DOMAIN Is Successfully Updated \e[0m"
elif [ "$5" = "fastcgi" ]
then
@ -571,6 +626,9 @@ then
# Reload Nginx Configuration
NGINXRELOAD
# Display Success Message
echo -e "\033[34m Nginx Configuration For $DOMAIN Is Successfully Updated \e[0m"
else
EngineHelp
fi
@ -661,6 +719,9 @@ then
# Reload Nginx Configuration
NGINXRELOAD
# Display Success Message
echo -e "\033[34m $DOMAIN Is Successfully Deleted \e[0m"
else
EngineHelp
fi

Loading…
Cancel
Save