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
Éric Gaspar cb83902e38 cleaning
2024-06-23 21:13:38 +02:00

31 lines
1 KiB
Bash

#!/bin/bash
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# MODIFY URL IN NGINX CONF
#=================================================
ynh_script_progression "Updating NGINX web server configuration..."
ynh_config_change_url_nginx
#=================================================
# UPDATE A CONFIG FILE
#=================================================
ynh_script_progression "Updating configuration..."
ynh_replace --match='default_domain = "$domain"' --replace='default_domain = "$new_domain"' --file="$install_dir/app/data/_data_/_default_/configs/application.ini"
#=================================================
# SETUP SSO
#=================================================
ynh_script_progression "Applying SSO patch..."
ynh_config_add --template="sso.php" --destination="$install_dir/index.php"
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression "Change of URL completed for $app"