From: djurban Date: Sat, 26 Nov 2005 12:55:33 +0000 (+0000) Subject: - fix the http group missing problem by creating the group, this way i can get rid of X-Git-Tag: auto/ac/lighttpd-1_4_8-2~2 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=bf16bd53c40e6dcfffe08ec9c04690cac24f6223;p=packages%2Flighttpd.git - fix the http group missing problem by creating the group, this way i can get rid of 2005-11-26 12:51:15: (mod_fastcgi.c.804) bind failed for: /var/run/php/php-fastcgi.sock-0 0 Permission denied Access: (0770/drwxrwx---) Uid: ( 0/ root) Gid: ( 51/ UNKNOWN) Changed files: lighttpd.spec -> 1.142 --- diff --git a/lighttpd.spec b/lighttpd.spec index 14696b2..887a483 100644 --- a/lighttpd.spec +++ b/lighttpd.spec @@ -300,7 +300,9 @@ rm -rf $RPM_BUILD_ROOT %pre %groupadd -g 109 lighttpd -%useradd -u 116 -d %{_lighttpddir} -c "HTTP User" -g lighttpd lighttpd +%groupadd -g 51 http +%addusertogroup lighttpd http +%useradd -u 116 -d %{_lighttpddir} -c "HTTP User" -g lighttpd lighttpd,httpd %post /sbin/chkconfig --add %{name} @@ -322,6 +324,7 @@ fi if [ "$1" = "0" ]; then %userremove lighttpd %groupremove lighttpd + %groupremove http fi %triggerpostun -- %{name} <= 1.3.6-2