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

Fix change URL

This commit is contained in:
yalh76 2019-03-07 12:12:10 +01:00
parent 47225aa0b5
commit 743021283c
2 changed files with 8 additions and 2 deletions

View file

@ -15,7 +15,7 @@
multi_instance=1 multi_instance=1
incorrect_path=1 incorrect_path=1
port_already_use=1 port_already_use=1
change_url=0 change_url=1
;;; Levels ;;; Levels
Level 1=auto Level 1=auto
Level 2=auto Level 2=auto

View file

@ -92,8 +92,14 @@ fi
#================================================= #=================================================
# SPECIFIC MODIFICATIONS # SPECIFIC MODIFICATIONS
#================================================= #=================================================
# ... # MODIFY URL IN .ENV
#================================================= #=================================================
ynh_print_info "Updating .env configuration..."
ynh_replace_string "__NODEJS_PATH__" "$nodejs_path" "$final_path/.env"
ynh_replace_string "__DB_NAME__" "$db_name" "$final_path/.env"
ynh_replace_string "__DOMAIN_URI__" "$new_domain$new_path" "$final_path/.env"
ynh_replace_string "__PORT__" "$port" "$final_path/.env"
#================================================= #=================================================
# GENERIC FINALISATION # GENERIC FINALISATION