postinstall.sh - check if nginx.conf already exists

This commit is contained in:
André Bauer 2016-10-25 18:55:02 +02:00
parent 1ee250fc5b
commit 5cb038a95e

View file

@ -53,7 +53,7 @@ systemctl start zammad
# nginx config
if [ -d /etc/nginx/sites-enabled ]; then
# copy nginx config
cp ${ZAMMAD_DIR}/contrib/nginx/sites-available/zammad.conf /etc/nginx/sites-available/zammad.conf
test -f /etc/nginx/sites-available/zammad.conf || cp ${ZAMMAD_DIR}/contrib/nginx/sites-available/zammad.conf /etc/nginx/sites-available/zammad.conf
# creating symlink
test -h /etc/nginx/sites-available/zammad.conf || ln -s /etc/nginx/sites-available/zammad.conf /etc/nginx/sites-enabled/zammad.conf
# restart nginx