From 18c009a6ddcd385c775ee548a87692292ee9cdb8 Mon Sep 17 00:00:00 2001 From: azlux Date: Thu, 27 Jul 2017 20:13:51 +0200 Subject: [PATCH] Uninstall script As asked into #23 #21 --- README.md | 9 +++++++++ uninstall.sh | 14 ++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 uninstall.sh diff --git a/README.md b/README.md index 65c97f7..a6424dc 100644 --- a/README.md +++ b/README.md @@ -39,3 +39,12 @@ If you have issue with apache2 , you can try to add `apache2.service` next to ot The log for log2ram will be write here : `/var/log.hdd/log2ram.log` ###### Now, muffins for everyone ! + + +## Uninstall :( +(Because sometime we need it) +``` +cd log2ram +chmod +x uninstall.sh +sudo ./uninstall.sh +``` \ No newline at end of file diff --git a/uninstall.sh b/uninstall.sh new file mode 100644 index 0000000..e7a36cb --- /dev/null +++ b/uninstall.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +if [ `id -u` -eq 0 ] +then + service log2ram stop + systemctl disable log2ram + rm /etc/systemd/system/log2ram.service + rm /usr/local/bin/log2ram + rm etc/log2ram.conf + rm /etc/cron.hourly/log2ram + echo "##### Reboot isn't needed #####" +else + echo "You need to be ROOT (sudo can be used)" +fi \ No newline at end of file