-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathuninstall.sh
executable file
·51 lines (44 loc) · 1.13 KB
/
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
41
42
43
44
45
46
47
48
49
50
#/bin/bash
# Color markup
R=`tput setaf 1`
G=`tput setaf 2`
Y=`tput setaf 3`
C=`tput setaf 6`
W=`tput sgr0`
echo "${C}Mobile App CMS uninstaller${W}"
echo "${W}This script will remove all the files created by the install.sh script. ${W}"
echo "${W}Some commands run as sudo, so you will be asked to enter your password.${W}"
echo
echo "${G}Removing Drupal files...${W}"
sudo rm -rf .editorconfig \
CHANGELOG.txt \
COPYRIGHT.txt \
INSTALL.mysql.txt \
INSTALL.pgsql.txt \
INSTALL.sqlite.txt \
INSTALL.txt \
LICENSE.txt \
MAINTAINERS.txt \
README.txt \
UPGRADE.txt \
authorize.php \
cron.php \
includes \
index.php \
install.php \
misc \
modules \
profiles \
robots.txt \
scripts \
themes \
update.php \
web.config \
xmlrpc.php \
sites/default/settings.php \
sites/default/files \
install.log
echo "${G}Changing permissions on sites/default folder...${W}"
chmod u+w sites/default
echo "${G}Done${W}"
echo "${G}Please note that the database and user that was created in the install.sh script has not been deleted.${W}"