1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/leantime_ynh.git synced 2024-09-03 19:36:04 +02:00

Merge pull request #20 from YunoHost-Apps/change_url

Update change_url
This commit is contained in:
eric_G 2024-01-13 12:25:22 +01:00 committed by GitHub
commit b36e28b7e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,9 +9,6 @@
source _common.sh
source /usr/share/yunohost/helpers
timezone="$(cat /etc/timezone)"
key=$(ynh_string_random --length=18)
#=================================================
# MODIFY URL IN NGINX CONF
#=================================================
@ -24,10 +21,7 @@ ynh_change_url_nginx_config
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_add_config --template=".env" --destination="$install_dir/config/.env"
chmod 400 "$install_dir/config/.env"
chown $app:$app "$install_dir/config/.env"
ynh_replace_string --match_string="LEAN_APP_URL = 'https://$old_domain'" --replace_string="LEAN_APP_URL = 'https://$new_domain'" --target_file="$install_dir/config/.env"
#=================================================
# END OF SCRIPT