1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Move patch to script dir as source are not available on restore

This commit is contained in:
Josué Tille 2024-03-12 12:13:17 +01:00
parent 9c1338ab5d
commit b516701865
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5
2 changed files with 2 additions and 1 deletions

View file

@ -46,9 +46,10 @@ install_sources() {
fi fi
# Apply patch for LDAP auth if needed # 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 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 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 popd
fi fi
} }