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:
parent
585818bd4a
commit
9cc70f3c9c
3 changed files with 2 additions and 5 deletions
|
@ -7,7 +7,8 @@ DEBUG = TEMPLATE_DEBUG = False
|
||||||
|
|
||||||
ALLOWED_HOSTS = ['{{ domain }}']
|
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'
|
STATIC_ROOT = '{{ install_dir }}/static'
|
||||||
NOTIFICATION_EMAILS = ['{{ email }}']
|
NOTIFICATION_EMAILS = ['{{ email }}']
|
||||||
DEFAULT_FROM_EMAIL = 'notifier@{{ domain }}'
|
DEFAULT_FROM_EMAIL = 'notifier@{{ domain }}'
|
||||||
|
|
|
@ -7,8 +7,6 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app
|
||||||
|
|
||||||
ynh_change_url_nginx_config
|
ynh_change_url_nginx_config
|
||||||
|
|
||||||
prefix="${path#"/"}/"
|
|
||||||
prefix=${prefix%"/"}
|
|
||||||
ynh_add_config --jinja --template=local.py.j2 --destination="$install_dir/coin/settings_local.py"
|
ynh_add_config --jinja --template=local.py.j2 --destination="$install_dir/coin/settings_local.py"
|
||||||
|
|
||||||
chmod 400 "$install_dir/coin/settings_local.py"
|
chmod 400 "$install_dir/coin/settings_local.py"
|
||||||
|
|
|
@ -37,8 +37,6 @@ popd
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring application..."
|
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"
|
ynh_add_config --jinja --template=local.py.j2 --destination="$install_dir/coin/settings_local.py"
|
||||||
chmod 400 "$install_dir/coin/settings_local.py"
|
chmod 400 "$install_dir/coin/settings_local.py"
|
||||||
chown $app "$install_dir/coin/settings_local.py"
|
chown $app "$install_dir/coin/settings_local.py"
|
||||||
|
|
Loading…
Reference in a new issue