12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- _SG=/www/htdocs
- 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/logs ] || ( mkdir $_SG/logs
- chown httpd $_SG/logs
- )
-
- [ -e $_SG/tmp ] || ( mkdir $_SG/tmp
- chown httpd $_SG/tmp
- )
-
-
- /etc/init.d/lighttpd restart
- )&
- exit 0
|