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:
parent
9c1338ab5d
commit
b516701865
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue