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

Suggestion from #50

Check if systemd log2ram service is running before the install;
This commit is contained in:
azlux 2018-04-30 23:22:47 +02:00
parent e41d5a0f23
commit 2d7951a666

View File

@ -1,7 +1,7 @@
#!/usr/bin/env sh
[ -d /var/hdd.log ] && echo "ERROR: log2ram still installed. Uninstall first!"
[ -d /var/hdd.log ] && exit 1
systemctl -q is-active log2ram && { echo "ERROR: log2ram service is still running. Please run \"sudo service log2ram stop\" to stop it."; exit 1; }
if [ "$(id -u)" -eq 0 ]
then