mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
Replace includes for Apache 2.4
This commit is contained in:
parent
77f08ebe2e
commit
b6cc3a847d
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue