From 1406472d8ab9f5d922046b23b4249ecb762d8fd8 Mon Sep 17 00:00:00 2001 From: Azlux Date: Thu, 21 May 2020 20:37:27 +0200 Subject: [PATCH] Small check in case config not good --- log2ram | 4 ++++ log2ram.conf | 1 + 2 files changed, 5 insertions(+) diff --git a/log2ram b/log2ram index 2cbdb57..f7bcb36 100755 --- a/log2ram +++ b/log2ram @@ -2,6 +2,10 @@ . /etc/log2ram.conf +if [ -z "$PATH_DISK" ]; then + PATH_DISK="/var/log" +fi + LOG_NAME="log2ram.log" diff --git a/log2ram.conf b/log2ram.conf index 7c509ac..b057eab 100644 --- a/log2ram.conf +++ b/log2ram.conf @@ -17,6 +17,7 @@ USE_RSYNC=false MAIL=true # Variable for folders to put in RAM. You need to specify the real folder `/path/folder` , the `/path/hdd.folder` will be automatically created. Multiple path can be separeted by `;`. Do not add the final `/` ! +# example : PATH_DISK="/var/log;/home/test/FolderInRam" PATH_DISK="/var/log" # **************** Zram backing conf *************************************************