Fix bad installation path for boost
[hvlinux.git] / stage5 / pkg / lighttpd
index 121db2b..d5ded9f 100644 (file)
@@ -2,9 +2,9 @@
 
 hvconfig_pre()
 {
-    groupadd -f ${APACHE_USER}
-    hv_useradd -c WebServer -d /dev/null -g ${APACHE_USER} -s /bin/false \
-        ${APACHE_USER}
+    groupadd -f ${HTTPD_USER}
+    hv_useradd -c WebServer -d /dev/null -g ${HTTPD_USER} -s /bin/false \
+        ${HTTPD_USER}
 }
 
 hvbuild_post()
@@ -55,7 +55,7 @@ fastcgi.server = ( ".php" => ((
                  )))
 EOF
 
-    chown -v -R ${APACHE_USER}:${APACHE_USER} /srv/www
+    chown -v -R ${HTTPD_USER}:${HTTPD_USER} /srv/www
 
     # Bootscript
     cp -p doc/initscripts/sysconfig.lighttpd /etc/sysconfig/lighttpd
@@ -63,5 +63,7 @@ EOF
     install -v -m740 ${SCRDIR}/bootscripts/lighttpd /etc/rc.d/init.d
 
     # script-name start stop
-    bootscript_add_rc3 lighttpd 70 20
+    if [ "x${DEFAULT_WEB_SERVER}" == "xlighttpd" ]; then
+        bootscript_add_rc3 lighttpd 70 20
+    fi
 }