aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2019-06-15 13:37:52 +0200
committerGitHub <noreply@github.com>2019-06-15 13:37:52 +0200
commit7b696104403c3749584b95f629cc4d8df64f4460 (patch)
tree242837e4b634f511d19b8d6daccbbe9c0d501dbc /scripts
parenta25e4569c8341ec94a39a57aaccad86379c8a630 (diff)
parent36457507e34175de88bf2018f425f1f067f11a99 (diff)
downloadmastodon_ynh-7b696104403c3749584b95f629cc4d8df64f4460.tar.gz
mastodon_ynh-7b696104403c3749584b95f629cc4d8df64f4460.tar.bz2
mastodon_ynh-7b696104403c3749584b95f629cc4d8df64f4460.zip
Merge pull request #158 from YunoHost-Apps/testing
Testing
Diffstat (limited to 'scripts')
-rw-r--r--scripts/upgrade1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/upgrade b/scripts/upgrade
index 85ca1f1..3dafd21 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -219,6 +219,7 @@ ynh_install_ruby --ruby_version=2.6.1
#=================================================
ynh_script_progression --message="Modifying a config file..." --weight=1
+ynh_backup_if_checksum_is_different --file="$final_path/live/.env.production"
cp -f ../conf/.env.production.sample "$final_path/live/.env.production"
ynh_replace_string --match_string="__DB_USER__" --replace_string="$app" --target_file="$final_path/live/.env.production"
ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="$final_path/live/.env.production"