From a17625dc675d29c16a408fad69b566a89a1eaf6d Mon Sep 17 00:00:00 2001 From: lapineige Date: Mon, 28 Dec 2020 12:24:29 +0100 Subject: [PATCH] Don't override (new) official templates with old ones Fix #65 --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 626454a..e31c9bd 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -83,7 +83,7 @@ then ynh_setup_source --dest_dir="$final_path" cp -a "$tmpdir/data" "$final_path/" - cp -a "$tmpdir/tpl" "$final_path/" + cp -a -n "$tmpdir/tpl" "$final_path/" # copy without erasing existing templates (from official source) # Remove the tmp directory securely ynh_secure_remove --file="$tmpdir"