mirror of
https://github.com/YunoHost-Apps/firefly-iii-di_ynh.git
synced 2024-09-03 18:36:21 +02:00
45 lines
1.3 KiB
Text
45 lines
1.3 KiB
Text
|
#!/bin/bash
|
||
|
|
||
|
#=================================================
|
||
|
# GENERIC STARTING
|
||
|
#=================================================
|
||
|
# IMPORT GENERIC HELPERS
|
||
|
#=================================================
|
||
|
|
||
|
source _common.sh
|
||
|
source /usr/share/yunohost/helpers
|
||
|
|
||
|
#=================================================
|
||
|
# LOAD SETTINGS
|
||
|
#=================================================
|
||
|
|
||
|
email=$(ynh_user_get_info --username=$admin --key=mail)
|
||
|
timezone="$(cat /etc/timezone)"
|
||
|
|
||
|
#=================================================
|
||
|
# STANDARD MODIFICATIONS
|
||
|
#=================================================
|
||
|
# MODIFY URL IN NGINX CONF
|
||
|
#=================================================
|
||
|
ynh_script_progression --message="Updating NGINX web server configuration..."
|
||
|
|
||
|
ynh_change_url_nginx_config
|
||
|
|
||
|
#=================================================
|
||
|
# MODIFY A CONFIG FILE
|
||
|
#=================================================
|
||
|
ynh_script_progression --message="Modifying a config file..."
|
||
|
|
||
|
domain="$new_domain"
|
||
|
path="$new_path"
|
||
|
|
||
|
ynh_add_config --template="../conf/.env" --destination="$install_dir/.env"
|
||
|
chmod 400 "$install_dir/.env"
|
||
|
chown $app "$install_dir/.env"
|
||
|
|
||
|
#=================================================
|
||
|
# END OF SCRIPT
|
||
|
#=================================================
|
||
|
|
||
|
ynh_script_progression --message="Change of URL completed for $app"
|