#!/bin/sh

set -e

# Source debconf library.
. /usr/share/debconf/confmodule


# Choose to configure Apache webserver
db_input high hoteldruid/configure-apache || true
db_go

# Choose to restart Apache webserver
db_get hoteldruid/configure-apache
if [ "$RET" = "true" ]; then
    db_input high hoteldruid/restrict-localhost || true
    db_input medium hoteldruid/restart-webserver || true
    db_go
fi
