From 9cc70f3c9c913868d4e6c0bd29a0842e7b111b2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Sat, 29 Jun 2024 23:27:35 +0200 Subject: [PATCH] Remove prefix definition and use hard coded value --- conf/local.py.j2 | 3 ++- scripts/change_url | 2 -- scripts/install | 2 -- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/conf/local.py.j2 b/conf/local.py.j2 index 477fd56..651d83c 100644 --- a/conf/local.py.j2 +++ b/conf/local.py.j2 @@ -7,7 +7,8 @@ DEBUG = TEMPLATE_DEBUG = False ALLOWED_HOSTS = ['{{ domain }}'] -URL_PREFIX = '{{ prefix }}' +# Prefix is hard coded for now as the app can only be installed on whole domain +URL_PREFIX = '' STATIC_ROOT = '{{ install_dir }}/static' NOTIFICATION_EMAILS = ['{{ email }}'] DEFAULT_FROM_EMAIL = 'notifier@{{ domain }}' diff --git a/scripts/change_url b/scripts/change_url index 5da12ad..f990470 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -7,8 +7,6 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app ynh_change_url_nginx_config -prefix="${path#"/"}/" -prefix=${prefix%"/"} ynh_add_config --jinja --template=local.py.j2 --destination="$install_dir/coin/settings_local.py" chmod 400 "$install_dir/coin/settings_local.py" diff --git a/scripts/install b/scripts/install index 438438d..3133d5b 100644 --- a/scripts/install +++ b/scripts/install @@ -37,8 +37,6 @@ popd #================================================= ynh_script_progression --message="Configuring application..." -prefix="${path#"/"}/" -prefix=${prefix%"/"} ynh_add_config --jinja --template=local.py.j2 --destination="$install_dir/coin/settings_local.py" chmod 400 "$install_dir/coin/settings_local.py" chown $app "$install_dir/coin/settings_local.py"