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

20 lines
683 B
Text
Raw Normal View History

2019-08-23 16:08:03 +02:00
#!/bin/bash
source _common.sh
source /usr/share/yunohost/helpers
ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log"
2023-12-16 15:11:09 +01:00
ynh_change_url_nginx_config
2019-08-23 16:08:03 +02:00
ynh_backup_if_checksum_is_different --file="$install_dir/coin/settings_local.py"
ynh_render_template ../conf/local.py.j2 "$install_dir/coin/settings_local.py"
ynh_store_file_checksum --file="$install_dir/coin/settings_local.py"
chmod 400 "$install_dir/coin/settings_local.py"
chown $app "$install_dir/coin/settings_local.py"
2019-08-23 16:08:03 +02:00
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
2022-09-03 00:23:04 +02:00
ynh_script_progression --message="Change of URL completed for $app" --last