typo: www/default/index.html would be overwritten if it already exists

This commit is contained in:
Joshua Tauberer 2014-06-23 19:43:19 +00:00
parent 1dec8c65ce
commit f8cd2bb805
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ cp conf/nginx-ssl.conf /etc/nginx/nginx-ssl.conf
# make a default homepage
if [ -d $STORAGE_ROOT/www/static ]; then mv $STORAGE_ROOT/www/static $STORAGE_ROOT/www/default; fi # migration
mkdir -p $STORAGE_ROOT/www/default
if [ ! -f STORAGE_ROOT/www/default/index.html ]; then
if [ ! -f $STORAGE_ROOT/www/default/index.html ]; then
cp conf/www_default.html $STORAGE_ROOT/www/default/index.html
fi
chown -R $STORAGE_USER $STORAGE_ROOT/www