mirror of
https://github.com/azlux/log2ram.git
synced 2023-10-10 13:37:24 +02:00
parent
1ed58f986c
commit
9c774dcbb7
@ -12,7 +12,8 @@ Log2Ram is based on transient log for Systemd here : [A transient /var/log](http
|
||||
curl -Lo log2ram.tar.gz https://github.com/azlux/log2ram/archive/master.tar.gz
|
||||
tar xf log2ram.tar.gz
|
||||
cd log2ram-master
|
||||
chmod +x install.sh && sudo ./install.sh
|
||||
chmod +x log2ram-master/install.sh && sudo log2ram-master/install.sh
|
||||
rm -r log2ram-master
|
||||
|
||||
**REBOOT** before installing anything else (for example apache2)
|
||||
|
||||
@ -51,7 +52,5 @@ The log for log2ram will be written at: `/var/log/log2ram.log`
|
||||
## Uninstall :(
|
||||
(Because sometime we need it)
|
||||
```
|
||||
cd log2ram
|
||||
chmod +x uninstall.sh
|
||||
sudo ./uninstall.sh
|
||||
chmod +x /usr/local/bin/uninstall-log2ram.sh && sudo /usr/local/bin/uninstall-log2ram.sh
|
||||
```
|
||||
|
@ -16,6 +16,7 @@ then
|
||||
chmod +x /etc/cron.hourly/log2ram
|
||||
cp log2ram.logrotate /etc/logrotate.d/log2ram
|
||||
chmod 644 /etc/logrotate.d/log2ram
|
||||
cp uninstall.sh /usr/local/bin/uninstall-log2ram.sh
|
||||
|
||||
# Remove a previous log2ram version
|
||||
if [ -d /var/log.hdd ]; then
|
||||
|
@ -13,7 +13,8 @@ then
|
||||
if [ -d /var/hdd.log ]; then
|
||||
rm -r /var/hdd.log
|
||||
fi
|
||||
|
||||
echo "Log2Ram is uninstalled, removing the uninstaller in progress"
|
||||
rm /usr/local/bin/uninstall-log2ram.sh
|
||||
echo "##### Reboot isn't needed #####"
|
||||
else
|
||||
echo "You need to be ROOT (sudo can be used)"
|
||||
|
Loading…
Reference in New Issue
Block a user