1
0
mirror of https://github.com/azlux/log2ram.git synced 2023-10-10 13:37:24 +02:00

Uninstall script

As asked into #23 #21
This commit is contained in:
azlux 2017-07-27 20:13:51 +02:00
parent ded0d7b895
commit 18c009a6dd
2 changed files with 23 additions and 0 deletions

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
uninstall.sh Normal file
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