From 8a3b580713c22efd47c216c8f54a9eee2db3a620 Mon Sep 17 00:00:00 2001 From: Simon Mellerin Date: Thu, 31 Dec 2020 12:11:01 +0100 Subject: [PATCH] Upgrade script - add comment --- scripts/upgrade | 6 ++++++ sources/patches/app-00-ldap-auth.patch | 1 + 2 files changed, 7 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index c08700d..4672232 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -84,6 +84,12 @@ if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Upgrading source files..." + # For aeneria source update, we use a temporary directory because + # without it, patche can't be apply correctly: + # In 'app-00-ldap-auth.patch' we create a new file, if we try + # to apply the patch a second time while the file already exists, it + # throws a warning leading to an upgrade fail. + # Create tmpdir for new sources tmpdir="$(ynh_smart_mktemp min_size=300)" diff --git a/sources/patches/app-00-ldap-auth.patch b/sources/patches/app-00-ldap-auth.patch index 1a3ec39..09ec5aa 100644 --- a/sources/patches/app-00-ldap-auth.patch +++ b/sources/patches/app-00-ldap-auth.patch @@ -176,3 +176,4 @@ index 0000000..39ba1e8 + return $values[0]; + } +} +--