12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- _SG=/www/htdocs
- (sleep 15; mount /dev/sda3 -o rw,noatime,nodiratime $_SG
- mountpoint -q $_SG && (
-
- [ $(stat $_SG -c %U) != 'httpd' ] && chown -R httpd $_SG
- [ $(stat $_SG -c %a) -lt '755' ] && chmod -R u+rwX $_SG
-
- [ -e $_SG/index.html ] || (
- cp /www/lib/resources/index.html $_SG/default.html
- chown httpd $_SG/default.html
- )
-
- [ -e $_SG/log ] || ( mkdir $_SG/log
- chown httpd $_SG/log
- }
-
- [ -e $_SG/tmp ] || ( mkdir $_SG/tmp
- chown httpd $_SG/tmp
- }
-
-
- )
- /etc/init.d/lighttpd restart
- )&
- exit 0
|