-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathuninstall.sh
40 lines (23 loc) · 1013 Bytes
/
uninstall.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
#Instructions to use this script
#
#chmod +x SCRIPTNAME.sh
#
#sudo ./SCRIPTNAME.sh
echo "###################################################################################"
echo "Please be Patient: Removal will start now....... It may take some time :)"
echo "###################################################################################"
#Update the repositories
sudo apt-get update
#Apache, Php, MySQL and required packages installation
sudo apt-get -y purge apache2 php7.0 libapache2-mod-php7.0 php7.0-mcrypt php7.0-curl php7.0-mysql php7.0-gd php7.0-cli php7.0-dev mysql-client
php7.0enmod mcrypt
sudo apt-get -y install purge mysql-server
#Restart all the installed services to verify that everything is installed properly
echo -e "\n"
if [ $? -ne 0 ]; then
echo "Please check the removal of services, There was a $(tput bold)$(tput setaf 1)Problem$(tput sgr0)"
else
echo "Removal of services run $(tput bold)$(tput setaf 2)Sucessfully$(tput sgr0)"
fi
echo -e "\n"