Browse Source

Uninstall script

As asked into #23 #21
pull/27/head
azlux 7 years ago
parent
commit
18c009a6dd
2 changed files with 23 additions and 0 deletions
  1. +9
    -0
      README.md
  2. +14
    -0
      uninstall.sh

+ 9
- 0
README.md View File

@@ -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
```

+ 14
- 0
uninstall.sh View File

@@ -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

Loading…
Cancel
Save