mirror of
https://github.com/openwrt/packages.git
synced 2025-12-10 12:41:22 +00:00
ddns-scripts: variable quoting
in case spaces should creep into path names Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
committed by
Florian Eckert
parent
6b9b6fdace
commit
6706a5bd78
@@ -147,19 +147,19 @@ case "$1" in
|
||||
;;
|
||||
start)
|
||||
[ -z "$SECTION" ] && usage_err "command 'start': 'SECTION' not set"
|
||||
if [ $VERBOSE -eq 0 ]; then # start in background
|
||||
$DDNSPRG -v 0 -S $SECTION -- start &
|
||||
if [ "$VERBOSE" -eq 0 ]; then # start in background
|
||||
"$DDNSPRG" -v 0 -S "$SECTION" -- start &
|
||||
else
|
||||
$DDNSPRG -v $VERBOSE -S $SECTION -- start
|
||||
"$DDNSPRG" -v "$VERBOSE" -S "$SECTION" -- start
|
||||
fi
|
||||
;;
|
||||
reload)
|
||||
$DDNSPRG -- reload
|
||||
"$DDNSPRG" -- reload
|
||||
;;
|
||||
restart)
|
||||
$DDNSPRG -- stop
|
||||
"$DDNSPRG" -- stop
|
||||
sleep 1
|
||||
$DDNSPRG -- start
|
||||
"$DDNSPRG" -- start
|
||||
;;
|
||||
*)
|
||||
__RET=255
|
||||
@@ -167,6 +167,6 @@ case "$1" in
|
||||
esac
|
||||
|
||||
# remove out and err file
|
||||
[ -f $DATFILE ] && rm -f $DATFILE
|
||||
[ -f $ERRFILE ] && rm -f $ERRFILE
|
||||
[ -f "$DATFILE" ] && rm -f "$DATFILE"
|
||||
[ -f "$ERRFILE" ] && rm -f "$ERRFILE"
|
||||
return $__RET
|
||||
|
||||
Reference in New Issue
Block a user