aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranmol26s <5068843+anmol26s@users.noreply.github.com>2018-06-22 14:00:26 +0530
committerGitHub <noreply@github.com>2018-06-22 14:00:26 +0530
commitfc1dee56d6d0885aedf7525515a9eff7fcda895b (patch)
tree1220fab5e1f8a0113a9d04cf0bf71f6a045fbd9a
parentf13690c38b42b07b75598018c85b4b84a88c3d24 (diff)
downloadmastodon_ynh-fc1dee56d6d0885aedf7525515a9eff7fcda895b.tar.gz
mastodon_ynh-fc1dee56d6d0885aedf7525515a9eff7fcda895b.tar.bz2
mastodon_ynh-fc1dee56d6d0885aedf7525515a9eff7fcda895b.zip
used ynh_replace_string in upgrade
-rw-r--r--scripts/upgrade2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/upgrade b/scripts/upgrade
index 0350efe..0429013 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -56,7 +56,7 @@ if [[ -z "$db_pwd" ]]; then
ynh_app_setting_set $app db_pwd $db_pwd
ynh_psql_test_if_first_run
sudo --login --user=postgres psql -c"ALTER user $app WITH PASSWORD '$db_pwd'" postgres
- sed -i "s@DB_PASS=@DB_PASS=${db_pwd}@g" "${final_path}/live/.env.production"
+ ynh_replace_string "DB_PASS=" "DB_PASS=${db_pwd}" "${final_path}/live/.env.production"
fi
#=================================================