Page 1 of 1

zmpkg.pl script on slackware 9.1

Posted: Fri Jun 18, 2004 4:56 pm
by jackal207
I install zoneminder 1.19.4 on my slackware 9.1, with the guide from the site, and almost everthing works, except the zoneminder script zmpkg.pl.
This is the zmpkg.log:

Command: start
Executing:su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl check'
/bin/bash: --shell=/bin/sh: invalid option
Usage: /bin/bash [GNU long option] [option]...
/bin/bash [GNU long option] [option] script file ...

GNU long options:
--debug
--dump-po-string
--dump-strings
--help
--init-file
--login
--noediting
--noprofile
--norc
--posix
--rcfile
--restricted
--verbose
--version
--wordexp
Shell options:
-irsD or -c command or -O shopt_option (invocation only)
-abefhkmnptuvxBCHP or -o option

Posted: Fri Jun 18, 2004 4:58 pm
by zoneminder
There is a document in the Documentation section which describes the tweaks you need to apply to get ZM running on Slackware. It's for a much older version of ZM but much of it still applies. Basically you've run into one of them which is the format of the 'su' command parameters.

Phil,

Posted: Mon Jun 21, 2004 5:39 pm
by videodog
replace
su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl check'
with
su apache -c '/usr/local/bin/zmdc.pl check'

its on the zmpkg.pl file around line 142