Merge pull request #300 from monotek/develop

postinstall.sh - check if nginx.conf already exists
This commit is contained in:
André Bauer 2016-10-25 18:55:43 +02:00 committed by GitHub
commit 19bf7d497a

View file

@ -53,7 +53,7 @@ systemctl start zammad
# nginx config # nginx config
if [ -d /etc/nginx/sites-enabled ]; then if [ -d /etc/nginx/sites-enabled ]; then
# copy nginx config # 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 # creating symlink
test -h /etc/nginx/sites-available/zammad.conf || ln -s /etc/nginx/sites-available/zammad.conf /etc/nginx/sites-enabled/zammad.conf test -h /etc/nginx/sites-available/zammad.conf || ln -s /etc/nginx/sites-available/zammad.conf /etc/nginx/sites-enabled/zammad.conf
# restart nginx # restart nginx