ALT Linux Bugzilla
– Attachment 4163 Details for
Bug 22652
Init script creates weird docroot directory in vhost environment
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Creating all of the document roots
lighttpd.init.patch (text/plain), 578 bytes, created by
Nikolay A. Fetisov
on 2009-12-30 21:34:39 MSK
(
hide
)
Description:
Creating all of the document roots
Filename:
MIME Type:
Creator:
Nikolay A. Fetisov
Created:
2009-12-30 21:34:39 MSK
Size:
578 bytes
patch
obsolete
>--- a/rc.d/init.d/lighttpd >+++ b/rc.d/init.d/lighttpd >@@ -33,9 +33,11 @@ msg_reopen_logs() > } > > ajust_docroot() { >- docroot=$(fgrep server.document-root "$LIGHTTPD_CONF_PATH" |cut -d '=' -f2 |egrep -o "/.*" \ >- |sed -e "s,\"$,,g") >- [ -d "$docroot" ] || echo "docroot doesn't exist, creating it" && mkdir -p "$docroot" >+ fgrep server.document-root "$LIGHTTPD_CONF_PATH" |cut -d '=' -f2 |egrep -o "/.*" \ >+ |sed -e "s,\"$,,g" | \ >+ while read docroot; do >+ [ -d "$docroot" ] || echo "docroot '$docroot' doesn't exist, creating it" && mkdir -p "$docroot" >+ done > } > > start() {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 22652
: 4163