The patch below adds a `user' option to /etc/config/httpd, mapped to
busybox_httpd's "-u" parameter (which is disabled by default, BTW).


        Stefan


Index: package/busybox/files/httpd
===================================================================
--- package/busybox/files/httpd (révision 14043)
+++ package/busybox/files/httpd (copie de travail)
@@ -13,9 +13,12 @@
 httpd_config() {
        local cfg="$1"
        local c_file port realm home args
+       unset args
 
        config_get c_file "$cfg" c_file
        [ -n "$c_file" -a -f "$c_file" ] && append args "-c \"$c_file\""
+        config_get user "$cfg" user
+        [ -n "$user" ] && append args "-u \"$user\""
        config_get port "$cfg" port
        append args "-p ${port:-80}"
        config_get home "$cfg" home
@@ -36,7 +39,6 @@
        config_foreach system_config system
        hostname="${hostname:-OpenWrt}"
 
-       unset args
        config_load httpd
        [ "$?" != "0" ] && {
                uci_set_default httpd <<EOF

_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to