Browse Source

Bug fix: avoid installing when still installed

pull/37/head
Nathan Huizinga 7 years ago
parent
commit
4f7c1a33a2
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      install.sh

+ 3
- 0
install.sh 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


Loading…
Cancel
Save