mirror of
https://github.com/YunoHost-Apps/snappymail_ynh.git
synced 2024-09-03 20:26:29 +02:00
31 lines
1 KiB
Bash
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"
|