瀏覽代碼

Replace includes for Apache 2.4

Serghey Rodin 12 年之前
父節點
當前提交
b6cc3a847d
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      bin/v-update-web-templates

+ 8 - 0
bin/v-update-web-templates

@@ -43,6 +43,14 @@ fi
 # Update templates
 tar -xzpf templates.tar.gz -C $VESTA/data/ templates/web
 
+# Replace includes for apache2.4
+if [ "$os" = 'ubuntu' ]; then
+    if [ ! -z "$(apache2 -v|grep 'Apache/2.4')" ]; then
+        sed -i "s/Include /IncludeOptional /g" \
+            $VESTA/data/templates/web/apache2/*tpl
+    fi
+fi
+
 # Rebuild web domains
 for user in $($BIN/v-list-sys-users plain); do
     $BIN/v-rebuild-web-domains $user no