diff options
| author | yalh76 <yalh@yahoo.com> | 2019-06-01 06:49:42 +0200 |
|---|---|---|
| committer | yalh76 <yalh@yahoo.com> | 2019-06-01 06:49:42 +0200 |
| commit | f50a2d9b5574b40962e6f42b8933238f94303829 (patch) | |
| tree | 2c59c28b97da76a0bc8c11001a0df629f59a8de8 /scripts | |
| parent | 14e0456de31d2c5add5ca5ec5e152af3ab253349 (diff) | |
| download | mastodon_ynh-f50a2d9b5574b40962e6f42b8933238f94303829.tar.gz mastodon_ynh-f50a2d9b5574b40962e6f42b8933238f94303829.tar.bz2 mastodon_ynh-f50a2d9b5574b40962e6f42b8933238f94303829.zip | |
backup .env before replacing it
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/upgrade | 1 |
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" |
