Skip to content

Commit b6cc3a8

Browse files
committed
Replace includes for Apache 2.4
1 parent 77f08eb commit b6cc3a8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bin/v-update-web-templates

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ fi
4343
# Update templates
4444
tar -xzpf templates.tar.gz -C $VESTA/data/ templates/web
4545

46+
# Replace includes for apache2.4
47+
if [ "$os" = 'ubuntu' ]; then
48+
if [ ! -z "$(apache2 -v|grep 'Apache/2.4')" ]; then
49+
sed -i "s/Include /IncludeOptional /g" \
50+
$VESTA/data/templates/web/apache2/*tpl
51+
fi
52+
fi
53+
4654
# Rebuild web domains
4755
for user in $($BIN/v-list-sys-users plain); do
4856
$BIN/v-rebuild-web-domains $user no

0 commit comments

Comments
 (0)