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."";