1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-22 07:17:05 +00:00

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

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