Print and delete provisioner password on setup

This commit is contained in:
Carl Tashian 2023-01-09 17:59:33 -08:00
parent a017238874
commit ad5cbd9a0e
No known key found for this signature in database

View file

@ -59,6 +59,13 @@ function step_ca_init () {
setup_args=("${setup_args[@]}" --remote-management) setup_args=("${setup_args[@]}" --remote-management)
fi fi
step ca init "${setup_args[@]}" step ca init "${setup_args[@]}"
echo ""
if [ -n "${DOCKER_STEPCA_INIT_REMOTE_MANAGEMENT}" ]; then
echo "👉 Your CA administrative username is: step"
fi
echo "👉 Your CA administrative password is: $(< $STEPPATH/provisioner_password )"
echo "🤫 This will only be displayed once."
rm $STEPPATH/provisioner_password
mv $STEPPATH/password $PWDPATH mv $STEPPATH/password $PWDPATH
} }