Modified debian/config - first time install and dpkg-reconfigure.
[apache2-cn.git] / debian / config
index e430173..6574486 100755 (executable)
@@ -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)