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

Update change_url

This commit is contained in:
yalh76 2021-05-19 20:40:37 +02:00
parent 3a10c355a0
commit 3780bdd493

View file

@ -112,20 +112,10 @@ fi
#=================================================
# MODIFY THE CONFIG FILE
#=================================================
ynh_script_progression --message="Modifying a config file..."
configfile="$final_path/code/config/.env"
cp ../conf/env.prod "$configfile"
ynh_replace_string --match_string="__REDIS_DB__" --replace_string="$redis_db" --target_file="$configfile"
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$configfile"
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$new_domain" --target_file="$configfile"
ynh_replace_string --match_string="__DB_USER__" --replace_string="$db_name" --target_file="$configfile"
ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd" --target_file="$configfile"
ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="$configfile"
ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" --target_file="$configfile"
ynh_replace_string --match_string="__KEY__" --replace_string="$key" --target_file="$configfile"
domain=$new_domain
ynh_add_config --template="../conf/env.prod" --destination="$final_path/code/config/.env"
#=================================================
# MODIFY THE FEDERATION