1
0
mirror of https://github.com/deajan/obackup.git synced 2026-02-12 18:10:56 +01:00

Added userland logging

This commit is contained in:
deajan
2016-04-06 20:40:20 +02:00
parent 4e61708b85
commit 4ad99413f4
3 changed files with 44 additions and 10 deletions

View File

@@ -5,7 +5,7 @@ PROGRAM="obackup"
AUTHOR="(C) 2013-2016 by Orsiris de Jong"
CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr"
PROGRAM_VERSION=2.0-pre
PROGRAM_BUILD=2016033101
PROGRAM_BUILD=2016040601
IS_STABLE=no
source "./ofunctions.sh"
@@ -1336,7 +1336,9 @@ GetCommandlineArguments "$@"
LoadConfigFile "$1"
if [ "$LOGFILE" == "" ]; then
if [ -w /var/log ]; then
LOG_FILE=/var/log/$PROGRAM.$INSTANCE_ID.log
LOG_FILE="/var/log/$PROGRAM.$INSTANCE_ID.log"
elif ([ "$HOME" != "" ] && [ -w "$HOME" ]); then
LOG_FILE="$HOME/$PROGRAM.$INSTANCE_ID.log"
else
LOG_FILE=./$PROGRAM.$INSTANCE_ID.log
fi