add check vault_pass file

This commit is contained in:
Gilles Mouchet 2024-05-22 00:16:33 +02:00
parent e48ef91265
commit 8689365896

View File

@ -141,7 +141,7 @@ printSuccess "Date and Time updated successfully"
# check /root/ansible/.vault_pass.txt exits
#-----------------------------------------------------------------------------
printInfo "Check /root/ansible/.vault_pass.txt"
if [ ! -f "/root/ansible/.vault_pass.txt"]; then
if [ ! -f "/root/ansible/.vault_pass.txt" ]; then
printError "You must create /root/ansible/.vault_pass.txt"
exit
fi