123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- sysctl -w vm.swappiness=10
- _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
|