From f14a5f987a6ffcd1970b2087a1d3db0bd515190a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Fri, 28 Oct 2016 10:05:36 +0200 Subject: [PATCH] pkgr-postinstall.sh - fix debian/ubuntu symlink path for nginx coonfig --- contrib/pkgr-postinstall.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/pkgr-postinstall.sh b/contrib/pkgr-postinstall.sh index ee8ad76e9..3712d93c1 100755 --- a/contrib/pkgr-postinstall.sh +++ b/contrib/pkgr-postinstall.sh @@ -65,11 +65,11 @@ if [ -n "$(which nginx)" ];then if [ -d /etc/nginx/sites-enabled ]; then NGINX_CONF="/etc/nginx/sites-enabled/zammad.conf" test -f /etc/nginx/sites-available/zammad.conf || cp ${ZAMMAD_DIR}/contrib/nginx/zammad.conf /etc/nginx/sites-available/zammad.conf - test -f /etc/nginx/sites-available/zammad.conf || ln -s /etc/nginx/sites-available/zammad.conf /etc/nginx/sites-enabled/zammad.conf + test -h ${NGINX_CONF} || ln -s /etc/nginx/sites-available/zammad.conf ${NGINX_CONF} # centos / sles elif [ -d /etc/nginx/conf.d ]; then NGINX_CONF="/etc/nginx/conf.d/zammad.conf" - test -f /etc/nginx/conf.d/zammad.conf || cp ${ZAMMAD_DIR}/contrib/nginx/zammad.conf /etc/nginx/conf.d/zammad.conf + test -f ${NGINX_CONF} || cp ${ZAMMAD_DIR}/contrib/nginx/zammad.conf ${NGINX_CONF} fi echo "# Restarting Nginx"