From d2283d637917b139029adbb9952a5a4e915de69b Mon Sep 17 00:00:00 2001 From: Tom Wiesing Date: Fri, 13 Nov 2020 12:17:41 +0100 Subject: [PATCH] provision_container: Conditionally apply EasyRDF patch This commit only applies the EasyRDF when the appropriate file exists. --- .../resources/compose/barrel/scripts/provision_container.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/distillery/resources/compose/barrel/scripts/provision_container.sh b/distillery/resources/compose/barrel/scripts/provision_container.sh index 362c430..523f55d 100644 --- a/distillery/resources/compose/barrel/scripts/provision_container.sh +++ b/distillery/resources/compose/barrel/scripts/provision_container.sh @@ -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 \ No newline at end of file +printdetails