httpd module: don't create documentRoot directory if it doesn't exist

It hides bugs and do you ever actually want to serve up an empty directory?
It was pretty confusing to me when it tried to write into a read-only store
path because I accidentally pointed it to the wrong store path.
This commit is contained in:
Dan Peebles 2017-01-05 21:19:07 -05:00
parent 2a57c1e60f
commit df7b4f4f6f

View file

@ -709,13 +709,6 @@ in
''}
mkdir -m 0700 -p ${mainCfg.logDir}
${optionalString (mainCfg.documentRoot != null)
''
# Create the document root directory if does not exists yet
mkdir -p ${mainCfg.documentRoot}
''
}
# Get rid of old semaphores. These tend to accumulate across
# server restarts, eventually preventing it from restarting
# successfully.