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