Fixed possible vulnerability with program execution path in batch mode.
This commit is contained in:
parent
7dd48aa44e
commit
b912412046
|
@ -3,7 +3,7 @@
|
||||||
PROGRAM="Osync-batch" # Batch program to run osync instances sequentially and rerun failed ones
|
PROGRAM="Osync-batch" # Batch program to run osync instances sequentially and rerun failed ones
|
||||||
AUTHOR="(L) 2013-2014 by Orsiris \"Ozy\" de Jong"
|
AUTHOR="(L) 2013-2014 by Orsiris \"Ozy\" de Jong"
|
||||||
CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr"
|
CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr"
|
||||||
PROGRAM_BUILD=2015090801
|
PROGRAM_BUILD=2015092801
|
||||||
|
|
||||||
## Runs an osync instance for every conf file found
|
## Runs an osync instance for every conf file found
|
||||||
## If an instance fails, run it again if time permits
|
## If an instance fails, run it again if time permits
|
||||||
|
@ -73,9 +73,6 @@ function CheckEnvironment {
|
||||||
if [ -f /usr/local/bin/osync.sh ]
|
if [ -f /usr/local/bin/osync.sh ]
|
||||||
then
|
then
|
||||||
OSYNC_EXECUTABLE=/usr/local/bin/osync.sh
|
OSYNC_EXECUTABLE=/usr/local/bin/osync.sh
|
||||||
elif [ -f ./osync.sh ]
|
|
||||||
then
|
|
||||||
OSYNC_EXECUTABLE=./osync.sh
|
|
||||||
else
|
else
|
||||||
Logger "Could not find osync.sh" "CRITICAL"
|
Logger "Could not find osync.sh" "CRITICAL"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in New Issue