bridgehead/lib/add_bc_user.sh

13 lines
342 B
Bash
Raw Normal View History

2022-03-28 15:34:57 +02:00
#!/bin/bash -e
2022-05-09 12:57:24 +02:00
source lib/functions.sh
2022-03-28 15:34:57 +02:00
2022-05-09 12:57:24 +02:00
log "This script add's a user with password to the bridghead"
2022-04-11 15:28:11 +02:00
2022-03-28 15:34:57 +02:00
read -p 'Username: ' bc_user
read -sp 'Password: ' bc_password
2022-04-11 15:28:11 +02:00
echo
2022-05-12 13:00:08 +02:00
log "Please export the line in the your environment. Please replace the dollar signs with with \\\$"
docker run --rm -it httpd:latest htpasswd -nb $bc_user $bc_password