forked from TrueCloudLab/certificates
Print and delete provisioner password on setup
This commit is contained in:
parent
a017238874
commit
ad5cbd9a0e
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue