From d98ff01e86f3c7949b54448c4e71cf88d406eb8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Fri, 3 Aug 2018 22:24:07 +0200 Subject: [PATCH] Fix gunicorn config --- scripts/install | 3 +++ scripts/upgrade | 3 +++ 2 files changed, 6 insertions(+) diff --git a/scripts/install b/scripts/install index f6728de..4e3a970 100644 --- a/scripts/install +++ b/scripts/install @@ -125,6 +125,9 @@ echo 'ENABLE_WIKI = True' | tee -a $final_path/conf/seahub_settings.py # Fix local warning ynh_replace_string en_US.UTF-8 ${LANG:-'en_US.UTF-8'} $final_path/seafile-server-$seafile_version/seahub.sh +# Update gunicorn config +sed --in-place -r "s@bind = \"0\.0\.0\.0:[[:digit:]]+\"@bind = \"0.0.0.0:$seahub_port\"@g" $final_path/conf/gunicorn.conf + # Add webdav cp ../conf/seafdav.conf $final_path/conf/seafdav.conf ynh_replace_string WEBDAV_PORT $webdav_port $final_path/conf/seafdav.conf diff --git a/scripts/upgrade b/scripts/upgrade index fe3f5e5..7455cf6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -141,6 +141,9 @@ fi # Fix local warning ynh_replace_string en_US.UTF-8 $LANG $final_path/seafile-server-$seafile_version/seahub.sh +# Update gunicorn config +sed --in-place -r "s@bind = \"0\.0\.0\.0:[[:digit:]]+\"@bind = \"0.0.0.0:$seahub_port\"@g" $final_path/conf/gunicorn.conf + #================================================= # STANDARD UPGRADE STEPS #=================================================