From 066137242769919efca8be9250a9f7db7b28f007 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 1 Apr 2021 12:42:59 +0200 Subject: [PATCH] fix upgrade --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index fbef93c..79ed0d4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -126,7 +126,7 @@ then cp -a "$final_path/$app/config/prod.secret.exs" "$tmpdir/prod.secret.exs" # Backup upload dir - rsync -a "$final_path/uploads" "$tmpdir/." + rsync -a "$final_path/$app/uploads" "$tmpdir/." # Remove the app directory securely ynh_secure_remove --file="$final_path/$app" @@ -138,7 +138,7 @@ then cp -a "$tmpdir/prod.secret.exs" "$final_path/$app/config/prod.secret.exs" # Restore upload dir - sync -a "$tmpdir/uploads" "$final_path/." + sync -a "$tmpdir/uploads" "$final_path/$app/." # Remove the tmp directory securely ynh_secure_remove --file="$tmpdir"