postinstall.sh - check if nginx.conf already exists
This commit is contained in:
parent
1ee250fc5b
commit
5cb038a95e
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