Fix service file wildcard expansion

This commit is contained in:
deajan 2018-02-20 22:49:36 +01:00
parent a7d0c6f515
commit bfa9d72c8d
1 changed files with 2 additions and 2 deletions

View File

@ -36,14 +36,14 @@ if [ ! -w $(dirname $pidfile) ]; then
fi
start() {
if [ ! -f $confdir/*.conf ]; then
if ! ls "$confdir/"*.conf > /dev/null 2>&1; then
echo "Cannot find any configuration files in $confdir."
exit 1
fi
errno=0
for cfgfile in $confdir/*.conf
for cfgfile in "$confdir/"*.conf
do
if [ -f $progpath/$progexec ]; then
$progpath/$progexec $cfgfile --on-changes --errors-only > /dev/null 2>&1 &