opnsense-ports/databases/pgloader3/files/patch-pgloader__wrapper.sh
Franco Fichtner 272c0543b0 */*: sync with upstream
Taken from: HardenedBSD
2017-08-08 12:30:57 +02:00

11 lines
394 B
Bash

--- pgloader_wrapper.sh.orig 2017-07-14 08:47:14 UTC
+++ pgloader_wrapper.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# There is a bug for current ccl on FreeBSD, which is determine_executable_name
+# doesn't do the job for FreeBSD. Now we use this script as a workaround. See:
+# https://github.com/Clozure/ccl/issues/38
+
+BIN_DIR="$(cd $(/usr/bin/dirname $0);pwd)"
+exec "${BIN_DIR}"/pgloader3 "${@}"