X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=debian%2Fpostinst;fp=debian%2Fpostinst;h=c40784c1ec10023922eeb6904864509e2feac94f;hb=bced93752b2266c32f7ffc13a103a5c401327ef3;hp=58ed0faa7d04216b519d977295b51db16ab09afb;hpb=89a18a738e905542d20c88b6cd65ee2a2eae58d6;p=pkg-nagvis.git diff --git a/debian/postinst b/debian/postinst index 58ed0fa..c40784c 100644 --- a/debian/postinst +++ b/debian/postinst @@ -26,7 +26,7 @@ fi # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package -setperm() { # thx 2 nagios2/debian/nagios2-common.postinst +setperm() { local user="$1" local group="$2" local mode="$3" @@ -50,9 +50,9 @@ case "$1" in setperm www-data www-data 0775 /usr/share/nagvis/htdocs/nagvis/etc/maps ucf /usr/share/nagvis/debian/apache.conf /etc/nagvis/apache.conf - #if ! [ -e /etc/apache2/conf.d/nagvis.conf ]; then - # ln -s /etc/nagvis/apache.conf /etc/apache2/conf.d/nagvis.conf - #fi + if [ ! -f /etc/apache2/conf.d/nagvis.conf ]; then + ln -s /etc/nagvis/apache.conf /etc/apache2/conf.d/nagvis.conf + fi ;;