Преглед изворни кода

Uninstall script

As asked into #23 #21
pull/27/head
azlux пре 7 година
родитељ
комит
18c009a6dd
2 измењених фајлова са 23 додато и 0 уклоњено
  1. +9
    -0
      README.md
  2. +14
    -0
      uninstall.sh

+ 9
- 0
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
```

+ 14
- 0
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

Loading…
Откажи
Сачувај