mirror of
https://github.com/YunoHost-Apps/coin_ynh.git
synced 2024-09-03 18:16:26 +02:00
20 lines
626 B
Bash
20 lines
626 B
Bash
#!/bin/bash
|
|
|
|
source ./experimental_helper.sh
|
|
source _common.sh
|
|
source /usr/share/yunohost/helpers
|
|
|
|
ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log"
|
|
|
|
ynh_change_url_nginx_config
|
|
|
|
prefix="${path#"/"}/"
|
|
prefix=${prefix%"/"}
|
|
ynh_add_jinja_config --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"
|
|
|
|
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
|
|
|
|
ynh_script_progression --message="Change of URL completed for $app" --last
|