aboutsummaryrefslogtreecommitdiff
path: root/uninstall.sh
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2017-08-02 01:13:11 +0200
committerneodarz <neodarz@neodarz.net>2017-08-02 01:13:11 +0200
commitb2653d82830b90512206d5ef7e2973af18e2400d (patch)
tree29aac8318b6a2cd706c235abbf91126e4060c242 /uninstall.sh
downloadkresus-gen-b2653d82830b90512206d5ef7e2973af18e2400d.tar.xz
kresus-gen-b2653d82830b90512206d5ef7e2973af18e2400d.zip
initial commit
Diffstat (limited to '')
-rwxr-xr-xuninstall.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/uninstall.sh b/uninstall.sh
new file mode 100755
index 0000000..5a6f7f3
--- /dev/null
+++ b/uninstall.sh
@@ -0,0 +1,21 @@
+usage () {
+ echo "You must set a $1 !"
+ echo "Usage:"
+ echo " uninstall.sh <user>"
+ exit 0
+}
+
+if [ -z $1 ]; then
+ usage "USER"
+fi
+
+
+USER=$1
+
+sudo systemctl stop kresus-$USER.service
+sudo rm /etc/systemd/system/kresus-$USER.service
+sudo a2dissite $USER.kresus.neodarz.net.conf
+sudo a2dissite $USER.kresus.neodarz.net-le-ssl.conf
+sudo rm /etc/apache2/sites-available/$USER.kresus.neodarz.net.conf
+sudo rm /etc/apache2/sites-available/$USER.kresus.neodarz.net-le-ssl.conf
+sudo systemctl reload apache2.service