From 8f2e2941b5c9fd521166e51a3889e6dc1b3076e7 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Thu, 31 Aug 2017 22:09:38 +0200 Subject: [PATCH] Fix l'url dans le fichier de config --- install_re2o.sh | 4 +++- re2o/settings_local.example.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/install_re2o.sh b/install_re2o.sh index 50fa09d1..15c0d57a 100755 --- a/install_re2o.sh +++ b/install_re2o.sh @@ -272,6 +272,8 @@ is_tls=$(dialog --clear \ clear +sed -i 's/URL_SERVER/'"$url_server"'/g' re2o/settings_local.py + if [ $web_serveur == 1 ] then @@ -283,7 +285,7 @@ cp install_utils/apache2/re2o-tls.conf /etc/apache2/sites-available/re2o.conf apt-get -y install certbot apt-get -y install python-certbot-apache certbot certonly --rsa-key-size 4096 --apache -d $url_server -sed -i 's/LE_PATH/'"$url_server"'/g' /etc/apache2/sites-available/re2o-tls.conf +sed -i 's/LE_PATH/'"$url_server"'/g' /etc/apache2/sites-available/re2o.conf else cp install_utils/apache2/re2o.conf /etc/apache2/sites-available/re2o.conf fi diff --git a/re2o/settings_local.example.py b/re2o/settings_local.example.py index caf3da47..acbb617a 100644 --- a/re2o/settings_local.example.py +++ b/re2o/settings_local.example.py @@ -32,7 +32,7 @@ ADMINS = [('Example', 'rezo-admin@example.org')] SERVER_EMAIL = 'no-reply@example.org' # Obligatoire, liste des host autorisés -ALLOWED_HOSTS = ['test.example.org'] +ALLOWED_HOSTS = ['URL_SERVER'] DATABASES = { 'default': {