File access permissions for Apache2 configuration
[apache2-cn.git] / debian / config
index 24d86fc..e8c2d71 100755 (executable)
@@ -5,13 +5,14 @@ set -e
 # Load debconf
 . /usr/share/debconf/confmodule
 
-CONFOLD="/etc/apache/httpd.conf"
 CONFDIR="/etc/apache2"
 CONF="$CONFDIR/apache2.conf"
 HOST=$(hostname)
 DOMAIN=$(hostname -d)
 
+
 # Check for existing SSL VirtualHosts.
+#
 has_listen_ssl=0
 
 if [ -d "$CONFDIR/conf.d" ] && [ -n "$(ls $CONFDIR/conf.d)" ]; then
@@ -30,6 +31,9 @@ for file in $CONF $listen_ssl_mask; do
     fi
 done
 
+
+# SSL certificates.
+#
 if [ $has_listen_ssl -eq 1 ]; then
 
        # SSL configuration already exists - no need for SSL certificates.    
@@ -39,8 +43,7 @@ if [ $has_listen_ssl -eq 1 ]; then
 
 else
     
-       # SSL certificates?
-       #
+       # SSL certificates information..
        SSLCF=1
        while [ $SSLCF -eq 1 ]; do
 
@@ -109,7 +112,9 @@ else
        done
 fi
 
+
 # Use WWW VirtualHost?
+#
 db_subst apache2-cn/wwwhost stroj_domena "${HOST}.${DOMAIN}"
 db_subst apache2-cn/wwwhost www_domena "www.${DOMAIN}"
 db_input critical apache2-cn/wwwhost || true