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

34 lines
1.1 KiB
Text
Raw Normal View History

2020-11-15 21:54:22 +01:00
#!/bin/bash
#=================================================
# GENERIC STARTING
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# MODIFY URL IN NGINX CONF
#=================================================
2023-06-05 11:03:43 +02:00
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=1
2020-11-15 21:54:22 +01:00
2023-06-05 10:48:49 +02:00
ynh_change_url_nginx_config
2020-11-15 21:54:22 +01:00
#=================================================
# SPECIFIC MODIFICATIONS
#=================================================
# MODIFY A CONFIG FILE
#=================================================
2023-06-05 11:03:43 +02:00
ynh_script_progression --message="Modifying a config file..." --weight=1
2020-11-15 21:54:22 +01:00
2021-07-26 12:16:15 +02:00
ynh_replace_string --match_string="$old_domain$old_path" --replace_string="$new_domain$new_path" --target_file="$final_path/.env"
ynh_store_file_checksum --file="$final_path/.env"
2020-11-15 21:54:22 +01:00
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Change of URL completed for $app"