mirror of
https://github.com/openziti/ziti.git
synced 2026-10-12 07:18:36 +00:00
use ziti-tunnel to enroll (#220)
This commit is contained in:
@@ -34,7 +34,7 @@ do_enroll()
|
||||
if [ ! -f "${cfgfile}" ]; then
|
||||
echo -n $"Enrolling ${service}: "
|
||||
if [ -f "${jwtfile}" ]; then
|
||||
"${ziti_dir}/bin/ziti-enroller" --jwt "${jwtfile}" --out "${cfgfile}" >> "${logfile}" 2>&1
|
||||
"${ziti_dir}/bin/ziti-tunnel" enroll --jwt "${jwtfile}" --out "${cfgfile}" >> "${logfile}" 2>&1
|
||||
if [ ${?} -ne 0 -o ! -f "${cfgfile}" ]; then
|
||||
failure $"Enrolling ${service}"
|
||||
echo ""
|
||||
|
||||
@@ -16,7 +16,7 @@ RUN apt-get -q update && apt-get -q install -y --no-install-recommends curl ca-c
|
||||
RUN /bin/bash -c "if ! compgen -G '/etc/ssl/certs/*.[0-9]' > /dev/null; then c_rehash /etc/ssl/certs; fi"
|
||||
|
||||
COPY fetch-ziti-bins.sh .
|
||||
RUN bash ./fetch-ziti-bins.sh ziti-tunnel ziti-enroller
|
||||
RUN bash ./fetch-ziti-bins.sh ziti-tunnel
|
||||
|
||||
################
|
||||
#
|
||||
|
||||
@@ -46,7 +46,7 @@ if [ ! -f "${json}" ]; then
|
||||
exit 1
|
||||
fi
|
||||
echo "enrolling ${jwt}"
|
||||
ziti-enroller --jwt "${jwt}" --out "${json}"
|
||||
ziti-tunnel enroll --jwt "${jwt}" --out "${json}"
|
||||
fi
|
||||
|
||||
echo "running ziti-tunnel"
|
||||
|
||||
Reference in New Issue
Block a user