Added script for basic auth user
This commit is contained in:
parent
cd149277ef
commit
2bab2edf43
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
echo "This script add's a user with password to the bridghead"
|
||||
read -p 'Username: ' bc_user
|
||||
read -sp 'Password: ' bc_password
|
||||
|
||||
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
|
||||
else
|
||||
export bc_auth_users="$bc_auth_users,$bc"
|
||||
echo $bc_auth_users
|
||||
fi
|
||||
|
Loading…
Reference in New Issue