Merge pull request #1201 from smallstep/herman/docker-remote-management

Add env vars for enabling Remote Management and ACME provisioner
This commit is contained in:
Herman Slatman 2022-12-14 19:32:19 +01:00 committed by GitHub
commit 9007e2ef75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,6 +49,12 @@ function step_ca_init () {
if [ -n "${DOCKER_STEPCA_INIT_SSH}" ]; then
setup_args=("${setup_args[@]}" --ssh)
fi
if [ -n "${DOCKER_STEPCA_INIT_ACME}" ]; then
setup_args=("${setup_args[@]}" --acme)
fi
if [ -n "${DOCKER_STEPCA_INIT_REMOTE_MANAGEMENT}" ]; then
setup_args=("${setup_args[@]}" --remote-management)
fi
step ca init "${setup_args[@]}"
mv $STEPPATH/password $PWDPATH
}