Allow commandline override of config file values

pull/167/head
deajan 5 years ago
parent 9bd2b7eeaf
commit 3edd80949f

@ -7,7 +7,7 @@ PROGRAM="osync" # Rsync based two way sync engine with fault tolerance
AUTHOR="(C) 2013-2019 by Orsiris de Jong"
CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr"
PROGRAM_VERSION=1.3.0-beta2
PROGRAM_BUILD=2019052015
PROGRAM_BUILD=2019052016
IS_STABLE=false
CONFIG_FILE_REVISION_REQUIRED=1.3.0
@ -3168,6 +3168,9 @@ else
exit 1
fi
# Reload GetCommandLineArguments so we can override config file with run time arguments
GetCommandlineArguments "${@}"
if [ "$LOGFILE" == "" ]; then
if [ -w /var/log ]; then
LOG_FILE="/var/log/$PROGRAM.$INSTANCE_ID.log"

Loading…
Cancel
Save