mirror of
https://github.com/cwchristerw/tjas-infra
synced 2025-08-08 15:24:35 +00:00
Add while loop to password field in Init script
This commit is contained in:
15
init.sh
15
init.sh
@@ -67,13 +67,16 @@ if [[ ! -f ~/.ansible/vault/pvjjk-1vos-tjas ]]
|
||||
then
|
||||
ti-header "Syötä Ansible Vaultin salasana..."
|
||||
echo -n "Salasana: "
|
||||
read VAULT_PASSWORD
|
||||
echo -e "\n\n"
|
||||
while [[ -z $VAULT_PASSWORD ]]
|
||||
do
|
||||
read VAULT_PASSWORD
|
||||
|
||||
if [[ ! -z $VAULT_PASSWORD ]]
|
||||
then
|
||||
echo "$VAULT_PASSWORD" > ~/.ansible/vault/pvjjk-1vos-tjas
|
||||
fi
|
||||
if [[ ! -z $VAULT_PASSWORD ]]
|
||||
then
|
||||
echo "$VAULT_PASSWORD" > ~/.ansible/vault/pvjjk-1vos-tjas
|
||||
fi
|
||||
done
|
||||
echo -e "\n\n"
|
||||
fi
|
||||
|
||||
ti-header "Suoritetaan Infran asennus..."
|
||||
|
Reference in New Issue
Block a user