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:
parent
3a10c355a0
commit
3780bdd493
1 changed files with 3 additions and 13 deletions
|
@ -112,20 +112,10 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
# MODIFY THE CONFIG FILE
|
# MODIFY THE CONFIG FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Modifying a config file..."
|
||||||
|
|
||||||
configfile="$final_path/code/config/.env"
|
domain=$new_domain
|
||||||
|
ynh_add_config --template="../conf/env.prod" --destination="$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"
|
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# MODIFY THE FEDERATION
|
# MODIFY THE FEDERATION
|
||||||
|
|
Loading…
Reference in a new issue