From 95a5efb60811ae0062e7cda45b6875d979103dd2 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 22 Nov 2019 23:24:09 +0100 Subject: [PATCH] Fix case of missing system folder --- scripts/upgrade | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 5c763a4..edff694 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -172,7 +172,9 @@ then tmpdir="$(mktemp -d)" mkdir $tmpdir/system - rsync -a "$final_path/live/public/system" "$tmpdir/." + if [ -d "$final_path/live/public/system" ]; then + rsync -a "$final_path/live/public/system" "$tmpdir/." + fi rsync -a "$final_path/live/.env.production" "$tmpdir/." ynh_secure_remove --file="$final_path/live/" ynh_setup_source --dest_dir="$final_path/live"