Browse Source

Include overwrite message

Ernesto Nicolás Carrea 5 years ago
parent
commit
5184caf052
1 changed files with 2 additions and 1 deletions
  1. 2 1
      bin/package/web-server/setup-ip.inc

+ 2 - 1
bin/package/web-server/setup-ip.inc

@@ -13,9 +13,10 @@ hestia_package_web-server_setup-ip() {
         hestia_safe_rm $web_conf
         hestia_safe_rm $web_conf
 
 
         if [ "$WEB_SYSTEM" = 'httpd' ] || [ "$WEB_SYSTEM" = 'apache2' ]; then
         if [ "$WEB_SYSTEM" = 'httpd' ] || [ "$WEB_SYSTEM" = 'apache2' ]; then
+            echo "# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS" > $web_conf
             if [ -z "$(/usr/sbin/apachectl -v | grep Apache/2.4)" ]; then
             if [ -z "$(/usr/sbin/apachectl -v | grep Apache/2.4)" ]; then
                 # FIXME: this will break with Apache > 2.4
                 # FIXME: this will break with Apache > 2.4
-                echo "NameVirtualHost $ip:$WEB_PORT" >  $web_conf
+                echo "NameVirtualHost $ip:$WEB_PORT" >>  $web_conf
             fi
             fi
             echo "Listen $ip:$WEB_PORT" >> $web_conf
             echo "Listen $ip:$WEB_PORT" >> $web_conf
             cat $HESTIA_INSTALL_DIR/$WEB_SYSTEM/unassigned.conf >> $web_conf
             cat $HESTIA_INSTALL_DIR/$WEB_SYSTEM/unassigned.conf >> $web_conf