Put quotes around parameters that may contain spaces in the created sysvinit-script
authorurs <urs@nerd2nerd.org>
Tue, 12 Jun 2007 19:15:28 +0000 (19:15 +0000)
committerurs <urs@nerd2nerd.org>
Tue, 12 Jun 2007 19:15:28 +0000 (19:15 +0000)
create-sysvinit-file.pl

index 22af427..8b851f0 100644 (file)
@@ -36,10 +36,10 @@ print << "EOF"
 
 # PATH should only include /usr/* if it runs after the mountnfs.sh script
 PATH=/sbin:/usr/sbin:/bin:/usr/bin
-DESC=$initparams{"Desc"}
+DESC="$initparams{"Desc"}"
 NAME=$initparams{"Name"}
 DAEMON=$initparams{"Path"}
-DAEMON_ARGS=$initparams{"Args"}
+DAEMON_ARGS="$initparams{"Args"}"
 PIDFILE=/var/run/\$NAME.pid
 SCRIPTNAME=/etc/init.d/\$NAME
 EOF