From fa21bfcaf86685dd116ec3581497578ae19b7f8d Mon Sep 17 00:00:00 2001 From: oufmilo <44617467+oufmilo@users.noreply.github.com> Date: Thu, 10 Jun 2021 11:23:28 +0200 Subject: [PATCH] Update install --- scripts/install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index d66b0ca..5d9f5bc 100644 --- a/scripts/install +++ b/scripts/install @@ -179,13 +179,13 @@ popd cat "../conf/ldap.exs" >> "$config" cat "../conf/mail.exs" >> "$config" -ynh_replace_string --match_string="__DATADIR__" --replace_string="$datadir" --target_file="../conf/uploads.exs" +ynh_add_config --match_string="__DATADIR__" --replace_string="$datadir" --target_file="../conf/uploads.exs" cat "../conf/uploads.exs" >> "$config" pushd $final_path/$app chmod o-rwx $config - ynh_replace_string --match_string="__YNH_USER__" --replace_string="${app}_notifs" --target_file="$config" - ynh_replace_string --match_string="__YNH_USER_PASSWORD__" --replace_string="${ynh_user_password}" --target_file="$config" + ynh_add_config --match_string="__YNH_USER__" --replace_string="${app}_notifs" --target_file="$config" + ynh_add_config --match_string="__YNH_USER_PASSWORD__" --replace_string="${ynh_user_password}" --target_file="$config" # Compile *again* because we added ldap conf in between... dunno if the first is relevant sudo -u "$app" MIX_ENV=prod mix compile ynh_secure_remove --file="/tmp/setup_db.psql"