zmpkg.pl script on slackware 9.1

Support and queries relating to all previous versions of ZoneMinder
Locked
jackal207
Posts: 9
Joined: Mon Apr 12, 2004 5:07 pm

zmpkg.pl script on slackware 9.1

Post 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
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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,
videodog
Posts: 3
Joined: Mon Apr 12, 2004 11:34 pm

Post 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
Locked