#!/bin/sh
# postinst script for sclesignrestfulmisc
#
# see: dh_installdeb(1)

set -e
user="root"

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

/usr/sbin/a2enmod headers > /dev/null 2>&1
/usr/sbin/a2enmod proxy > /dev/null 2>&1
/usr/sbin/a2enmod proxy_http > /dev/null 2>&1
/usr/sbin/a2enmod rewrite > /dev/null 2>&1
#/usr/sbin/a2enmod ssl > /dev/null 2>&1
/usr/sbin/a2ensite 010-configurateur.conf > /dev/null 2>&1

# Test if symlink exist
if [ -h /etc/apache2/sites-enabled/000-default.conf ]; then
	/usr/sbin/a2dissite 000-default
fi
/usr/bin/systemctl restart apache2 > /dev/null 2>&1
