scripts

shell scripts
git clone git://git.bitsmanent.org/scripts
Log | Files | Refs | README

commit 741b97e69a7379709b615ebea9a831b674ab6014
parent 3e0fadaa1eb718f4699496b120e9d16ed2771e80
Author: clamiax <smoppy@gmail.com>
Date:   Mon, 15 Sep 2014 23:08:09 +0200

Use sudo which works with www-data /usr/sbin/nologin shell

Diffstat:
Mspawncgi | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spawncgi b/spawncgi @@ -7,4 +7,4 @@ if [ $(id -u) -ne 0 ]; then fi [ $(pgrep -fl php5 |wc -l) -ne 0 ] && su -c "pkill -f php5-cgi" -su -c "/usr/bin/php5-cgi -b 127.0.0.1:9000" www-data & +sudo -u www-data /usr/bin/php5-cgi -b 127.0.0.1:9000 &