forked from TrueCloudLab/certificates
No need for PROVISIONER_PWDPATH
This commit is contained in:
parent
313bf2354b
commit
a017238874
3 changed files with 2 additions and 12 deletions
|
@ -19,7 +19,6 @@ USER step
|
||||||
|
|
||||||
ENV CONFIGPATH="/home/step/config/ca.json"
|
ENV CONFIGPATH="/home/step/config/ca.json"
|
||||||
ENV PWDPATH="/home/step/secrets/password"
|
ENV PWDPATH="/home/step/secrets/password"
|
||||||
ENV PROVISIONER_PWDPATH="/home/step/secrets/provisioner_password"
|
|
||||||
|
|
||||||
VOLUME ["/home/step"]
|
VOLUME ["/home/step"]
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
@ -28,4 +27,4 @@ HEALTHCHECK CMD step ca health 2>/dev/null | grep "^ok" >/dev/null
|
||||||
COPY docker/entrypoint.sh /entrypoint.sh
|
COPY docker/entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
|
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
|
||||||
CMD exec /usr/local/bin/step-ca --password-file $PWDPATH --provisioner-password-file $PROVISIONER_PWDPATH $CONFIGPATH
|
CMD exec /usr/local/bin/step-ca --password-file $PWDPATH $CONFIGPATH
|
||||||
|
|
|
@ -24,7 +24,6 @@ USER step
|
||||||
|
|
||||||
ENV CONFIGPATH="/home/step/config/ca.json"
|
ENV CONFIGPATH="/home/step/config/ca.json"
|
||||||
ENV PWDPATH="/home/step/secrets/password"
|
ENV PWDPATH="/home/step/secrets/password"
|
||||||
ENV PROVISIONER_PWDPATH="/home/step/secrets/provisioner_password"
|
|
||||||
|
|
||||||
VOLUME ["/home/step"]
|
VOLUME ["/home/step"]
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
@ -33,4 +32,4 @@ HEALTHCHECK CMD step ca health 2>/dev/null | grep "^ok" >/dev/null
|
||||||
COPY docker/entrypoint.sh /entrypoint.sh
|
COPY docker/entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
|
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
|
||||||
CMD exec /usr/local/bin/step-ca --password-file $PWDPATH --provisioner-password-file $PROVISIONER_PWDPATH $CONFIGPATH
|
CMD exec /usr/local/bin/step-ca --password-file $PWDPATH $CONFIGPATH
|
||||||
|
|
|
@ -60,7 +60,6 @@ function step_ca_init () {
|
||||||
fi
|
fi
|
||||||
step ca init "${setup_args[@]}"
|
step ca init "${setup_args[@]}"
|
||||||
mv $STEPPATH/password $PWDPATH
|
mv $STEPPATH/password $PWDPATH
|
||||||
mv $STEPPATH/provisioner_password $PROVISIONER_PWDPATH
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ -f /usr/sbin/pcscd ]; then
|
if [ -f /usr/sbin/pcscd ]; then
|
||||||
|
@ -71,11 +70,4 @@ if [ ! -f "${STEPPATH}/config/ca.json" ]; then
|
||||||
init_if_possible
|
init_if_possible
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "${PWDPATH}" ] && [ ! -f "${PROVISIONER_PWDPATH}" ]; then
|
|
||||||
# For backward compatibility,
|
|
||||||
# if the --provisioner-password-file doesn't exist,
|
|
||||||
# use the same password as the CA.
|
|
||||||
cp ${PWDPATH} ${PROVISIONER_PWDPATH}
|
|
||||||
fi
|
|
||||||
|
|
||||||
exec "${@}"
|
exec "${@}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue