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

update URL in the .env file

This commit is contained in:
yalh76 2019-02-08 23:29:28 +01:00
parent 9623468732
commit 388b15a8d2

View file

@ -99,8 +99,14 @@ ynh_systemd_action --action=stop --service_name=$app
# MODIFY A CONFIG FILE
#=================================================
# 9999 TODO : Change the config file or the systemd file
#ynh_replace_string "EXTERNAL_URL=.*" "EXTERNAL_URL=https://$new_domain$new_path" "$final_path/.env"
# Change the URL in the configuration file
ynh_replace_string "EXTERNAL_URL=.*" "EXTERNAL_URL=https://$new_domain$new_path" "$final_path/.env"
### Verify the checksum of a file, stored by `ynh_store_file_checksum` in the install script.
### And create a backup of this file if the checksum is different. So the file will be backed up if the admin had modified it.
ynh_backup_if_checksum_is_different "$final_path/.env"
# Recalculate and store the checksum of the file for the next upgrade.
ynh_store_file_checksum "$final_path/.env"
#=================================================
# START SERVICE