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