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"