12345678910111213141516171819202122232425262728293031323334 |
- _SG=/www/htdocs
- mountpoint -q $_SG || block mount $_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
- )
-
-
- )
- exit 0
|