bin/hyrax-entrypoint.sh in hyrax-3.0.0.pre.rc3 vs bin/hyrax-entrypoint.sh in hyrax-3.0.0.pre.rc4

- old
+ new

@@ -3,11 +3,18 @@ # Make sure common volume points have the app permission chown -fR app:app /app/samvera/hyrax-webapp/tmp chown -fR app:app /app/samvera/hyrax-webapp/public -chown -fR app:app $HYRAX_DERIVATIVES_PATH -chown -fR app:app $HYRAX_UPLOAD_PATH +if [ -v HYRAX_DERIVITIVES_PATH ]; then + mkdir -p $HYRAX_DERIVITIVES_PATH + chown -f -R app:app $HYRAX_DERIVATIVES_PATH +fi + +if [ -v HYRAX_UPLOAD_PATH ]; then + mkdir -p $HYRAX_UPLOAD_PATH + chown -f -R app:app $HYRAX_UPLOAD_PATH +fi mkdir -p /app/samvera/hyrax-webapp/tmp/pids rm -f /app/samvera/hyrax-webapp/tmp/pids/* # Run the command