mirror of
https://github.com/YunoHost-Apps/mobilizon_ynh.git
synced 2024-09-03 19:46:19 +02:00
ynh_add_config
This commit is contained in:
parent
7874971e06
commit
f00939209b
1 changed files with 1 additions and 9 deletions
|
@ -98,15 +98,7 @@ if ynh_version_gt "1.0.0~ynh1" "${previous_version}" ; then
|
||||||
|
|
||||||
# Configure Mobilizon
|
# Configure Mobilizon
|
||||||
config="$final_path/$app/config/prod.secret.exs"
|
config="$final_path/$app/config/prod.secret.exs"
|
||||||
cp ../conf/prod.secret.exs "$config"
|
ynh_add_config --template="../conf/prod.secret.exs" --destination="$config"
|
||||||
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$config"
|
|
||||||
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$config"
|
|
||||||
ynh_replace_string --match_string="__SECRET__" --replace_string="$secret" --target_file="$config"
|
|
||||||
ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="$config"
|
|
||||||
ynh_replace_string --match_string="__DB_USER__" --replace_string="$db_user" --target_file="$config"
|
|
||||||
ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd" --target_file="$config"
|
|
||||||
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$config"
|
|
||||||
ynh_replace_string --match_string="__ADMIN_EMAIL__" --replace_string="$admin_email" --target_file="$config"
|
|
||||||
|
|
||||||
# Implement ldap and mail
|
# Implement ldap and mail
|
||||||
cat "../conf/ldap.exs" >> "$config"
|
cat "../conf/ldap.exs" >> "$config"
|
||||||
|
|
Loading…
Add table
Reference in a new issue