Browse Source

fix: [apache] ensure the config file directory is empty at init time.

framadate
Valentin Lab 6 years ago
parent
commit
f517f06c86
  1. 1
      apache/hooks/init

1
apache/hooks/init

@ -25,6 +25,7 @@ RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule> </IfModule>
EOF EOF
rm -fv "$SERVICE_CONFIGSTORE/etc/apache2/sites-enabled/"*".conf"
cat <<EOF | file_put "$SERVICE_CONFIGSTORE/etc/apache2/sites-enabled/000-default.conf" cat <<EOF | file_put "$SERVICE_CONFIGSTORE/etc/apache2/sites-enabled/000-default.conf"
<VirtualHost *:80> <VirtualHost *:80>

Loading…
Cancel
Save