use ziti-tunnel to enroll (#220)

This commit is contained in:
Shawn Carey
2020-10-30 09:45:49 -04:00
committed by GitHub
parent df1796a0da
commit 2bbf389988
3 changed files with 3 additions and 3 deletions
@@ -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 ""
+1 -1
View File
@@ -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
################
#
+1 -1
View File
@@ -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"