zmpkg.pl and su
Posted: Sat Dec 03, 2005 4:45 am
I'm using gentoo 2005.1 and I have tried using the gentoo package and the source tarball and I have come across this problem on both instances.
I fixed it by changing it to
This happened with both versions I tried the one in the portage tree 1.21.3 and 1.21.4 the source tarball I used.[/code]
line 157 in zmpkg.pl islivserve zoneminder # cat 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
--debugger
--dump-po-strings
--dump-strings
--help
--init-file
--login
Code: Select all
$command = "su ".ZM_WEB_USER." --shell=/bin/sh --command='$command'";
Code: Select all
$command = "su -c '$command' ".ZM_WEB_USER."";