-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuninstall-smeserver-git.sh
executable file
·51 lines (39 loc) · 1.82 KB
/
uninstall-smeserver-git.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
51
#!/bin/bash
echo "Disabling git config entries ..."
config setprop git status disabled
echo "Removing GitDB handler ..."
rm -f /usr/lib/perl5/site_perl/esmith/GitDB.pm
echo "Removing server manager action scripts ..."
rm -f /etc/e-smith/events/actions/git*
echo "Removing server manager FormMagick handler ..."
rm -f /etc/e-smith/web/functions/git
rm -f /etc/e-smith/web/panels/manager/cgi-bin/git
rm -f /etc/e-smith/locale/en-us/etc/e-smith/web/functions/git
rm -f /usr/lib/perl5/site_perl/esmith/FormMagick/Panel/git.pm
rm -f /etc/e-smith/web/panels/manager/cgi-bin/git
echo "Updating server-manager panel ..."
/etc/e-smith/events/actions/navigation-conf
echo "Removing linked events to action scripts ..."
echo "TBD"
echo "Removing Markdown.pl package ..."
rm -rf /usr/share/markdown
echo "Removing gitweb resources ..."
rm -f /etc/e-smith/web/common/git*
echo "Removing gitweb.conf template fragments ..."
rm -rf /etc/e-smith/templates/etc/gitweb.conf
echo "Removing gitweb home text template fragments ..."
rm -rf /etc/e-smith/templates/etc/e-smith/web/common/gitweb_home_text.html
rm -f /etc/e-smith/web/common/gitweb_home_text.html
echo "Removing HTTP template ..."
rm -f /etc/e-smith/templates/etc/httpd/conf/httpd.conf/80SubDomainGit
expand-template /etc/httpd/conf/httpd.conf
/etc/init.d/httpd-e-smith restart
echo "-----------------------------------------------------------------------------------------------------"
echo "smeserver-git contrib has been removed, but the databases and git repositories have been left intact."
echo "To completely remove everything, use the following commands:"
echo " "
echo " config delete git"
echo " rm -f /home/e-smith/db/git"
echo " rm -rf /home/e-smith/files/git"
echo " "
echo "-----------------------------------------------------------------------------------------------------"