2021-08-13 15:48:24 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# MODIFY URL IN NGINX CONF
|
|
|
|
#=================================================
|
2024-07-07 17:17:14 +03:00
|
|
|
ynh_script_progression "Updating NGINX web server configuration..."
|
2021-08-13 15:48:24 +03:00
|
|
|
|
2024-07-07 17:17:14 +03:00
|
|
|
ynh_config_change_url_nginx
|
2023-03-29 20:23:48 +03:00
|
|
|
|
2021-08-13 15:48:24 +03:00
|
|
|
#=================================================
|
|
|
|
# SPECIFIC MODIFICATIONS
|
|
|
|
#=================================================
|
2022-06-01 05:16:19 +03:00
|
|
|
# UPDATE A CONFIG FILE
|
|
|
|
#=================================================
|
2024-07-07 17:17:14 +03:00
|
|
|
ynh_script_progression "Updating configuration..."
|
2021-08-13 15:48:24 +03:00
|
|
|
|
2023-03-29 20:30:41 +03:00
|
|
|
domain=$new_domain
|
2024-07-07 17:17:14 +03:00
|
|
|
ynh_config_add --template="config.php" --destination="$install_dir/config.php"
|
2021-08-13 15:48:24 +03:00
|
|
|
|
2023-03-29 20:23:48 +03:00
|
|
|
chmod 400 "$install_dir/config.php"
|
|
|
|
chown $app:$app "$install_dir/config.php"
|
2021-08-13 15:48:24 +03:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2024-07-07 17:17:14 +03:00
|
|
|
ynh_script_progression "Change of URL completed for $app"
|