mirror of
https://github.com/azlux/log2ram
synced 2024-11-23 13:56:30 +00:00
17 lines
350 B
Bash
Executable File
17 lines
350 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
systemctl daemon-reload
|
|
systemctl enable log2ram.service log2ram-daily.timer
|
|
|
|
|
|
rm -f /etc/cron.daily/log2ram
|
|
rm -f /etc/cron.hourly/log2ram
|
|
|
|
if [ "$1" == "configure" ]; then
|
|
echo "##### Reboot to activate log2ram #####"
|
|
echo "##### edit /etc/log2ram.conf to configure options ####"
|
|
fi
|
|
|
|
exit 0
|