2023-03-13 16:03:52 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# 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..."
|
|
|
|
|
2024-07-10 18:18:45 +02:00
|
|
|
email=$(ynh_user_get_info --username="$admin" --key="mail")
|
|
|
|
timezone="$(cat /etc/timezone)"
|
2023-03-13 16:03:52 +01:00
|
|
|
|
2024-07-10 18:18:45 +02:00
|
|
|
ynh_add_config --template=".env" --destination="$install_dir/.env"
|
2023-03-13 16:03:52 +01:00
|
|
|
chmod 400 "$install_dir/.env"
|
2024-07-10 18:18:45 +02:00
|
|
|
chown "$app" "$install_dir/.env"
|
2023-03-13 16:03:52 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
ynh_script_progression --message="Change of URL completed for $app"
|