Browse Source

fs layout

Danja Vasiliev 10 years ago
parent
commit
e601f2a29a

+ 3 - 3
openwrt/common/etc/lighttpd/lighttpd.conf

@@ -14,9 +14,9 @@ server.modules = (
 )
 
 server.document-root = "/www/htdocs"
-server.upload-dirs = ( "/www/tmp" )
-server.errorlog = "/www/log/error.log"
-accesslog.filename = "/www/log/access.log"
+server.upload-dirs = ( "/www/htdocs/tmp" )
+server.errorlog = "/www/htdocs/log/error.log"
+accesslog.filename = "/www/htdocs/log/access.log"
 server.pid-file = "/var/run/lighttpd.pid"
 server.username = "httpd"
 server.groupname = "nogroup"

+ 12 - 2
openwrt/common/etc/rc.local

@@ -1,6 +1,6 @@
-## some checks specific to SuperGlue
+## some checks specific to Superglue
 
-## where SuperGlue storage is mounted 
+## where Superglue storage is mounted 
 _SG=/www/htdocs
 
 ## mount if needed
@@ -19,6 +19,16 @@ mountpoint -q $_SG && (
     chown httpd $_SG/default.html
     )
 
+  ## check for log directory
+  [ -e $_SG/log ] || ( mkdir $_SG/log
+    chown httpd $_SG/log
+    }
+
+  ## check for tmp directory
+  [ -e $_SG/tmp ] || ( mkdir $_SG/tmp
+    chown httpd $_SG/tmp
+    }
+
   ## check symlinking
 #  for i in devTools resources templates; do
 #    [ -L $_SG/$i ] || ln -s /www/lib/$i $_SG/$i

+ 1 - 0
openwrt/common/www/htdocs/log

@@ -0,0 +1 @@
+../../tmp

+ 1 - 0
openwrt/common/www/htdocs/tmp

@@ -0,0 +1 @@
+../../tmp