provision_container: Conditionally apply EasyRDF patch

This commit only applies the EasyRDF when the appropriate file exists.
This commit is contained in:
Tom Wiesing 2020-11-13 12:17:41 +01:00
parent ab05656bfe
commit d2283d6379
No known key found for this signature in database
GPG key ID: DC1F29F2BC78AB15

View file

@ -100,7 +100,9 @@ composer install
# Patch EasyRDF (for now)
EASYRDF_RESPONSE="./vendor/easyrdf/easyrdf/lib/EasyRdf/Http/Response.php"
patch -N "$EASYRDF_RESPONSE" < "/patch/easyrdf.patch"
if [ -f "$EASYRDF_RESPONSE" ]; then
patch -N "$EASYRDF_RESPONSE" < "/patch/easyrdf.patch"
fi
popd
drupal_sites_permission_workaround
@ -136,4 +138,4 @@ function printdetails() {
echo "Ontology Paths: (empty)"
echo "SameAs property: http://www.w3.org/2002/07/owl#sameAs"
}
printdetails
printdetails