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
1 changed files with 3 additions and 0 deletions

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