Merge pull request #300 from monotek/develop
postinstall.sh - check if nginx.conf already exists
This commit is contained in:
commit
19bf7d497a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue