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

32 lines
1 KiB
Text
Raw Permalink Normal View History

2022-04-21 18:30:00 +02:00
#!/bin/bash
2023-08-05 15:14:40 +02:00
source _common.sh
2022-04-21 18:30:00 +02:00
source /usr/share/yunohost/helpers
2023-10-20 19:47:25 +02:00
#=================================================
# MODIFY URL IN NGINX CONF
#=================================================
2024-06-23 21:13:38 +02:00
ynh_script_progression "Updating NGINX web server configuration..."
2023-10-20 19:47:25 +02:00
2024-06-23 21:13:38 +02:00
ynh_config_change_url_nginx
2023-10-20 19:47:25 +02:00
2023-08-05 12:35:22 +02:00
#=================================================
# UPDATE A CONFIG FILE
#=================================================
2024-06-23 21:13:38 +02:00
ynh_script_progression "Updating configuration..."
2023-08-05 12:35:22 +02:00
2024-06-23 21:13:38 +02:00
ynh_replace --match='default_domain = "$domain"' --replace='default_domain = "$new_domain"' --file="$install_dir/app/data/_data_/_default_/configs/application.ini"
2023-08-05 12:35:22 +02:00
2023-08-04 16:13:47 +02:00
#=================================================
# SETUP SSO
#=================================================
2024-06-23 21:13:38 +02:00
ynh_script_progression "Applying SSO patch..."
2023-08-04 16:13:47 +02:00
2024-06-23 21:13:38 +02:00
ynh_config_add --template="sso.php" --destination="$install_dir/index.php"
2022-04-21 18:30:00 +02:00
#=================================================
# END OF SCRIPT
#=================================================
2024-06-23 21:13:38 +02:00
ynh_script_progression "Change of URL completed for $app"