From b516701865d51b6ec9143252077264f9aa8cd3e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Tue, 12 Mar 2024 12:13:17 +0100 Subject: [PATCH] Move patch to script dir as source are not available on restore --- scripts/_common.sh | 3 ++- .../patch}/ldap_auth_filter_anonymous_user.patch | 0 2 files changed, 2 insertions(+), 1 deletion(-) rename {sources => scripts/patch}/ldap_auth_filter_anonymous_user.patch (100%) diff --git a/scripts/_common.sh b/scripts/_common.sh index 32aabc2..0d07034 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -46,9 +46,10 @@ install_sources() { fi # Apply patch for LDAP auth if needed + # Note that we put patch into scripts dir because /source are not stored and can't be used on restore if ! grep -F -q '# LDAP Filter anonymous user Applied' $code_dir/lib/python$python_version/site-packages/ldap_auth_provider.py; then pushd $code_dir/lib/python$python_version/site-packages - patch < $YNH_APP_BASEDIR/sources/ldap_auth_filter_anonymous_user.patch + patch < $YNH_APP_BASEDIR/scripts/patch/ldap_auth_filter_anonymous_user.patch popd fi } diff --git a/sources/ldap_auth_filter_anonymous_user.patch b/scripts/patch/ldap_auth_filter_anonymous_user.patch similarity index 100% rename from sources/ldap_auth_filter_anonymous_user.patch rename to scripts/patch/ldap_auth_filter_anonymous_user.patch