|
@@ -8,9 +8,9 @@ export DOCKER_BUILDKIT=1
|
|
|
|
|
|
|
|
|
|
|
|
-export CONFIG_PHP_TEMPLATE="$(pwd)/templates/config.php"
|
|
|
-export CONFIG_NGINX_TEMPLATE="$(pwd)/templates/nginx.conf"
|
|
|
-export CONFIG_OPEN_SEARCH_TEMPLATE="$(pwd)/templates/opensearch.xml"
|
|
|
+export CONFIG_PHP_TEMPLATE="$(pwd)/scripts/tmp/config.php"
|
|
|
+export CONFIG_NGINX_TEMPLATE="$(pwd)/scripts/tmp/nginx.conf"
|
|
|
+export CONFIG_OPEN_SEARCH_TEMPLATE="$(pwd)/scripts/tmp/opensearch.xml"
|
|
|
|
|
|
|
|
|
|
|
@@ -58,11 +58,11 @@ export CURLOPT_MAXREDIRS=${CURLOPT_MAXREDIRS:-5}
|
|
|
export CURLOPT_TIMEOUT=${CURLOPT_TIMEOUT:-18}
|
|
|
export CURLOPT_VERBOSE=${CURLOPT_VERBOSE:-false}
|
|
|
|
|
|
+
|
|
|
+function AwkTrim() { awk '{$1=$1};1'; }
|
|
|
+
|
|
|
|
|
|
|
|
|
-[[ ! -s ${CONFIG_PHP_TEMPLATE} ]] && cat '$(pwd)/config.php' | envsubst | AwkTrim > ${CONFIG_PHP_TEMPLATE}
|
|
|
-[[ ! -s ${CONFIG_NGINX_TEMPLATE} ]] && cat '$(pwd)/nginx.conf' | envsubst | AwkTrim > ${CONFIG_NGINX_TEMPLATE}
|
|
|
-[[ ! -s ${CONFIG_OPEN_SEARCH_TEMPLATE} ]] && cat '$(pwd)/opensearch.xml' | envsubst | AwkTrim > ${CONFIG_OPEN_SEARCH_TEMPLATE}
|
|
|
-
|
|
|
-
|
|
|
-function AwkTrim() { awk '{$1=$1};1' }
|
|
|
+[[ ! -s ${CONFIG_PHP_TEMPLATE} ]] && cat 'scripts/config.php' | envsubst | AwkTrim > ${CONFIG_PHP_TEMPLATE};
|
|
|
+[[ ! -s ${CONFIG_NGINX_TEMPLATE} ]] && cat 'scripts/nginx.conf' | envsubst | AwkTrim > ${CONFIG_NGINX_TEMPLATE};
|
|
|
+[[ ! -s ${CONFIG_OPEN_SEARCH_TEMPLATE} ]] && cat 'scripts/opensearch.xml' | envsubst | AwkTrim > ${CONFIG_OPEN_SEARCH_TEMPLATE};
|