Improved script for user

This commit is contained in:
Patrick Skowronek
2022-04-04 14:02:03 +02:00
parent 2bab2edf43
commit a3f9dc64b7
4 changed files with 8 additions and 12 deletions

View File

@ -9,10 +9,7 @@ echo
bc=$(docker run --rm -ti xmartlabs/htpasswd $bc_user $bc_password)
if [ -z $bc_auth_users ]; then
export bc_auth_users=$bc
echo $bc_auth_users
printf "Please run: export bc_auth_users=\"%q\"" $bc
else
export bc_auth_users="$bc_auth_users,$bc"
echo $bc_auth_users
fi
echo "Please run: export bc_auth_users=\"${bc},$bc_auth_users\""
fi

View File

@ -4,7 +4,7 @@
## Check if user is a su
echo "Welcome to the starting a bridgehead. We will get your instance up and running in no time"
echo "First we will check if all prerequisites are met ..."
prerequisites="git docker docker-compose cat"
prerequisites="git docker docker-compose"
for prerequisite in $prerequisites; do
$prerequisite --version 2>&1
is_available=$?