don't overwrite /etc/nginx/sites-available/default

This commit is contained in:
j 2020-05-30 01:50:53 +02:00
parent 361f276315
commit fc18eecaf4

View file

@ -196,7 +196,10 @@ fi
# configure nginx
if [ "$NGINX" == "local" ]; then
cp "/srv/pandora/etc/nginx/pandora" "/etc/nginx/sites-available/default"
cp "/srv/pandora/etc/nginx/pandora" "/etc/nginx/sites-available/pandora"
rm /etc/nginx/sites-enabled/default
ln -s ../sites-available/pandora /etc/nginx/sites-enabled/pandora
read -r -d '' GZIP <<EOI
gzip_static on;\\
\tgzip_http_version 1.1;\\