#!/bin/bash set -e case $1 in install | configure) if dpkg --compare-versions "$2" lt 0.29; then echo "Fixing jclic-aula dns configuration..." /usr/share/lliurex-jclic-shared/oneshots/fix-dns || true fi if dpkg --compare-versions "$2" lt 0.30; then service n4d restart || true fi #DNS CONFIGURATION IS HANDLED BY DNS SERVER CONFIGURATION VIA ZERO-SERVER-WIZARD [ -L /var/www/jclic-aula ] || ln -s /net/server-sync/share/jclic-aula /var/www/jclic-aula # Postinstall bug solved # ln -s /net/server-sync/share/jclic-aula /var/www/jclic-aula || true # change ownership chgrp www-data /var/www/jclic-aula/jclic_uploads RET=$(a2ensite jclic-aula) if [ "$RET" != "Site jclic-aula already enabled" ]; then service apache2 reload || true else echo $RET fi ;; *) #echo "[DEBUG] Unknown action ..." ;; esac #DEBHELPER# exit 0