From c3b97042529c2a2482e301f36310e9f6c8bdfd7f Mon Sep 17 00:00:00 2001 From: Laurent GAY Date: Fri, 15 Dec 2023 20:52:13 +0100 Subject: [PATCH] correct for root path --- scripts/install | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/install b/scripts/install index 506c618..9f77371 100644 --- a/scripts/install +++ b/scripts/install @@ -23,6 +23,11 @@ venv/bin/pip3 install -U gunicorn psycopg2-binary psycopg2 django-auth-ldap3-ad sed -i 's|member=%s|inheritPermission=%s|g' venv/lib/python*/site-packages/django_auth_ldap3_ad/auth.py venv/bin/lucterios_admin.py installed ynh_add_config --template="../conf/extra_diacamma.json" --destination="/tmp/extra.json" +if [ "$path" == "/" ] +then + sed -i "/USE_X_FORWARDED_HOST/d" /tmp/extra.json + sed -i "/FORCE_SCRIPT_NAME/d" /tmp/extra.json +fi extra_json=$(jq -c . /tmp/extra.json) venv/bin/lucterios_admin.py add -n inst-${app} -p "${APPLITYPE}" -m "${MODULES}" -d "${DATABASE}" -e ''$extra_json'' popd