Don't show passwords

This commit is contained in:
Luke Murphy 2020-04-13 13:47:50 +02:00
parent 85316d7be4
commit 4061f5fd26
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -40,7 +40,7 @@ dokku-ansible-deploy-vault-pass-cmd() {
fi
# shellcheck disable=SC2162 disable=SC2116 disable=SC2006
read -p "Please enter your vault password for $APP: `echo $'\n> '`" VAULT_PASSWD
read -sp "Please enter your vault password for $APP: `echo $'\n> '`" VAULT_PASSWD
if [[ ! -d "$DOKKU_LIB_ROOT/data/deploy.d/$APP" ]]; then
dokku_col_log_info1_quiet "Creating $DOKKU_LIB_ROOT/data/deploy.d/$APP"
@ -65,7 +65,7 @@ dokku-ansible-deploy-sudo-pass-cmd() {
declare VARS_FILE="$DOKKU_LIB_ROOT/data/deploy.d/vars.yml"
# shellcheck disable=SC2162 disable=SC2116 disable=SC2006
read -p "Please enter your Dokku system user sudo password: `echo $'\n> '`" SUDO_PASSWD
read -sp "Please enter your Dokku system user sudo password: `echo $'\n> '`" SUDO_PASSWD
{ echo "---";
echo "ansible_become_password: \"$SUDO_PASSWD\""; } > "$VARS_FILE"