1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/coin_ynh.git synced 2024-09-03 18:16:26 +02:00

Remove prefix definition and use hard coded value

This commit is contained in:
Josué Tille 2024-06-29 23:27:35 +02:00
parent 585818bd4a
commit 9cc70f3c9c
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5
3 changed files with 2 additions and 5 deletions

View file

@ -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 }}'

View file

@ -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"

View file

@ -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"