This repository has been archived on 2026-11-21. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
encapic/packaging/encapic-enc
T
unkin-agent 70fe2858d0
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/build Pipeline was canceled
feat: add help, init, completion and conf-file URL resolution
2026-11-08 17:19:35 +11:00

16 lines
370 B
Bash
Executable File

#!/bin/sh
# Puppet's exec node_terminus invokes external_nodes with a certname and no
# environment, so the encapi URL cannot be inherited; source it here instead.
set -eu
for conf in /etc/encapic/encapic.conf /etc/encapi/encapic.conf; do
if [ -r "$conf" ]; then
. "$conf"
fi
done
if [ -n "${ENCAPI_URL:-}" ]; then
export ENCAPI_URL
fi
exec /usr/bin/encapic "$@"