diff options
author | root | 2021-11-03 16:09:25 +0100 |
---|---|---|
committer | root | 2021-11-03 16:09:25 +0100 |
commit | 58b1c9f569a247efcfc42d0511d9eea1dc92bcea (patch) | |
tree | 73f0b59b378490c687d3896f89e8e2e655dafd1d /minissdpd.openrc-initd | |
parent | 0a5e77437791305ea5080ae5385facdf623f9027 (diff) | |
download | aur-minissdpd-openrc.tar.gz |
Added an additional if-statement in the initscript for debug mode test which changed command execution to string comparison.
Diffstat (limited to 'minissdpd.openrc-initd')
-rwxr-xr-x | minissdpd.openrc-initd | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/minissdpd.openrc-initd b/minissdpd.openrc-initd index f46fc16e8d25..f16a01253696 100755 --- a/minissdpd.openrc-initd +++ b/minissdpd.openrc-initd @@ -50,11 +50,13 @@ if "${_IP6}"; then fi if "${_DEBUG}"; then - _DAEMON_ARGS+=('-d') - _STARTSTOPDAEMON_DEBUG_ARGS=( - '--background' - '-1' "${_LOGFILE}" '-2' "${_LOGFILE}" - ) + if [ "${_DEBUG}" == "true" ]; then + _DAEMON_ARGS+=('-d') + _STARTSTOPDAEMON_DEBUG_ARGS=( + '--background' + '-1' "${_LOGFILE}" '-2' "${_LOGFILE}" + ) + fi else _STARTSTOPDAEMON_DEBUG_ARGS=() fi |