azlux
před 6 roky
4 změnil soubory, kde provedl
6 přidání a
6 odebrání
-
install.sh
-
log2ram
-
log2ram.hourly
-
uninstall.sh
|
|
@@ -1,9 +1,9 @@ |
|
|
|
#!/bin/sh |
|
|
|
#!/usr/bin/env sh |
|
|
|
|
|
|
|
[ -d /var/hdd.log ] && echo "ERROR: log2ram still installed. Uninstall first!" |
|
|
|
[ -d /var/hdd.log ] && exit 1 |
|
|
|
|
|
|
|
if [ $(id -u) -eq 0 ] |
|
|
|
if [ "$(id -u)" -eq 0 ] |
|
|
|
then |
|
|
|
cp log2ram.service /etc/systemd/system/log2ram.service |
|
|
|
chmod 644 /etc/systemd/system/log2ram.service |
|
|
|
|
|
@@ -1,4 +1,4 @@ |
|
|
|
#!/bin/sh |
|
|
|
#!/usr/bin/env sh |
|
|
|
|
|
|
|
. /etc/log2ram.conf |
|
|
|
|
|
|
|
|
|
@@ -1,3 +1,3 @@ |
|
|
|
#!/bin/sh |
|
|
|
#!/usr/bin/env sh |
|
|
|
|
|
|
|
systemctl reload log2ram |
|
|
@@ -1,6 +1,6 @@ |
|
|
|
#!/bin/sh |
|
|
|
#!/usr/bin/env sh |
|
|
|
|
|
|
|
if [ $(id -u) -eq 0 ] |
|
|
|
if [ "$(id -u)" -eq 0 ] |
|
|
|
then |
|
|
|
service log2ram stop |
|
|
|
systemctl disable log2ram |
|
|
|