mirror of
https://github.com/deajan/obackup.git
synced 2024-12-25 23:13:41 +01:00
Some logging fixes
This commit is contained in:
parent
a8892f88d0
commit
6075b92c91
@ -9,7 +9,7 @@ PROGRAM="obackup"
|
||||
AUTHOR="(C) 2013-2016 by Orsiris de Jong"
|
||||
CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr"
|
||||
PROGRAM_VERSION=2.1-dev
|
||||
PROGRAM_BUILD=2016102303
|
||||
PROGRAM_BUILD=2016111001
|
||||
IS_STABLE=no
|
||||
|
||||
source "./ofunctions.sh"
|
||||
@ -1688,8 +1688,16 @@ else
|
||||
LOG_FILE="$LOGFILE"
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
if [ ! -w "$(dirname LOG_FILE)" ]; then
|
||||
echo "Cannot write to log [$(dirname LOG_FILE)]."
|
||||
else
|
||||
Logger "Script begin, logging to [$LOG_FILE]." "DEBUG"
|
||||
fi
|
||||
|
||||
if [ "$IS_STABLE" != "yes" ]; then
|
||||
Logger "This is an unstable dev build. Please use with caution." "WARN"
|
||||
Logger "This is an unstable dev build [$PROGRAM_BUILD]. Please use with caution." "WARN"
|
||||
fi
|
||||
|
||||
DATE=$(date)
|
||||
|
Loading…
Reference in New Issue
Block a user