Browse Source

Support Autoremove

old-stable
Mitesh Shah 12 years ago
parent
commit
305dc7e784
  1. 48
      setup/engine

48
setup/engine

@ -285,7 +285,11 @@ then
# Remove Nginx
echo -e "\033[34m Removing Nginx... \e[0m"
sudo apt-get -y remove nginx-custom nginx-common || OwnError "Unable To Remove Nginx"
sudo apt-get -y remove nginx-custom || OwnError "Unable To Remove Nginx"
# Remove Unwanted Packages
echo -e "\033[34m Removing Unwanted Packages... \e[0m"
sudo apt-get -y autoremove
# Display Success Message
echo -e "\033[34m Nginx Successfully Removed \e[0m"
@ -299,6 +303,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 Remove PHP5"
# Remove Unwanted Packages
echo -e "\033[34m Removing Unwanted Packages... \e[0m"
sudo apt-get -y autoremove
# Display Success Message
echo -e "\033[34m PHP5 Successfully Removed \e[0m"
@ -310,6 +318,10 @@ then
sudo apt-get -y remove mysql-server mysqltuner \
|| OwnError "Unable To Remove MySQL"
# Remove Unwanted Packages
echo -e "\033[34m Removing Unwanted Packages... \e[0m"
sudo apt-get -y autoremove
# Display Success Message
echo -e "\033[34m MySQL Successfully Removed \e[0m"
@ -320,6 +332,10 @@ then
echo -e "\033[34m Removing Postfix... \e[0m"
sudo apt-get -y remove postfix || OwnError "Unable To Remove Postfix"
# Remove Unwanted Packages
echo -e "\033[34m Removing Unwanted Packages... \e[0m"
sudo apt-get -y autoremove
# Display Success Message
echo -e "\033[34m Postfix Successfully Removed \e[0m"
@ -328,11 +344,15 @@ then
# Remove All
echo -e "\033[34m Removing Nginx PHP5 MySQL Postfix... \e[0m"
sudo apt-get -y remove nginx php5-common php5-mysql php5-xmlrpc \
sudo apt-get -y remove nginx-custom php5-common php5-mysql php5-xmlrpc \
php5-cgi php5-curl php5-gd php5-cli php5-fpm php-apc php-pear \
php5-dev php5-imap php5-mcrypt mysql-server mysqltuner postfix \
|| OwnError "Unable To Remove Nginx PHP5 MySQL Postfix"
# Remove Unwanted Packages
echo -e "\033[34m Removing Unwanted Packages... \e[0m"
sudo apt-get -y autoremove
# Display Success Message
echo -e "\033[34m Nginx PHP5 MySQL Postfix Successfully Removed \e[0m"
@ -350,7 +370,11 @@ then
# Purge Nginx
echo -e "\033[34m Purge Nginx... \e[0m"
sudo apt-get -y remove --purge nginx-custom nginx-common || OwnError "Unable To Purge Nginx"
sudo apt-get -y remove --purge nginx-custom || OwnError "Unable To Purge Nginx"
# Remove Unwanted Packages
echo -e "\033[34m Removing Unwanted Packages... \e[0m"
sudo apt-get -y autoremove
# Display Success Message
echo -e "\033[34m Nginx Successfully Purged \e[0m"
@ -364,6 +388,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 Purge PHP5"
# Remove Unwanted Packages
echo -e "\033[34m Removing Unwanted Packages... \e[0m"
sudo apt-get -y autoremove
# Display Success Message
echo -e "\033[34m PHP5 Successfully Purged \e[0m"
@ -375,6 +403,10 @@ then
sudo apt-get -y remove --purge mysql-server mysqltuner \
|| OwnError "Unable To Purge MySQL"
# Remove Unwanted Packages
echo -e "\033[34m Removing Unwanted Packages... \e[0m"
sudo apt-get -y autoremove
# Display Success Message
echo -e "\033[34m MySQL Successfully Purged \e[0m"
@ -385,6 +417,10 @@ then
echo -e "\033[34m Purge Postfix... \e[0m"
sudo apt-get -y remove --purge postfix || OwnError "Unable To Purge Postfix"
# Remove Unwanted Packages
echo -e "\033[34m Removing Unwanted Packages... \e[0m"
sudo apt-get -y autoremove
# Display Success Message
echo -e "\033[34m Postfix Successfully Purged \e[0m"
@ -393,11 +429,15 @@ then
# Purge All
echo -e "\033[34m Purge Nginx PHP5 MySQL Postfix... \e[0m"
sudo apt-get -y remove --purge nginx php5-common php5-mysql php5-xmlrpc \
sudo apt-get -y remove --purge nginx-custom php5-common php5-mysql php5-xmlrpc \
php5-cgi php5-curl php5-gd php5-cli php5-fpm php-apc php-pear \
php5-dev php5-imap php5-mcrypt mysql-server mysqltuner postfix \
|| OwnError "Unable To Purge Nginx PHP5 MySQL Postfix"
# Remove Unwanted Packages
echo -e "\033[34m Removing Unwanted Packages... \e[0m"
sudo apt-get -y autoremove
# Display Success Message
echo -e "\033[34m Nginx PHP5 MySQL Postfix Successfully Purged \e[0m"

Loading…
Cancel
Save