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

Bug fix: avoid installing when still installed

This commit is contained in:
Nathan Huizinga 2017-12-16 11:42:37 +01:00
parent 0e76e8d655
commit 4f7c1a33a2

View File

@ -1,5 +1,8 @@
#!/bin/sh
[ -d /var/hdd.log ] && echo "ERROR: log2ram still installed. Uninstall first!"
[ -d /var/hdd.log ] && exit 1
if [ `id -u` -eq 0 ]
then
cp log2ram.service /etc/systemd/system/log2ram.service