X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fconfig;h=65744860c126031cad65bd3e6aeb5f2a0b500f2c;hb=4e93316a1006dec0523ce2e169a6c31b78808d57;hp=e8c2d717c40e608c8e551a8a65347326886971eb;hpb=d03328f5a691130af6d00a90401854ec1dbca134;p=apache2-cn.git diff --git a/debian/config b/debian/config index e8c2d71..6574486 100755 --- a/debian/config +++ b/debian/config @@ -5,6 +5,19 @@ set -e # Load debconf . /usr/share/debconf/confmodule +if [ "$1" != reconfigure ]; then + + apache2_done=1 + + db_fget apache2-cn/wwwhost seen + if [ "$RET" != "true" ]; then + apache2_done=0 + fi + + test $apache2_done -eq 1 && exit 0 +fi + + CONFDIR="/etc/apache2" CONF="$CONFDIR/apache2.conf" HOST=$(hostname) @@ -37,12 +50,12 @@ done if [ $has_listen_ssl -eq 1 ]; then # SSL configuration already exists - no need for SSL certificates. - db_set apache2-cn/sslcf "X" || true - db_set apache2-cn/sslckf "X" || true - db_set apache2-cn/sslccf "X" || true + db_set apache2-cn/sslcf "" || true + db_set apache2-cn/sslckf "" || true + db_set apache2-cn/sslccf "" || true else - + # SSL certificates information.. SSLCF=1 while [ $SSLCF -eq 1 ]; do