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-17 15:55:25 +02:00
|
|
|
log "INFO" "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-05-17 15:55:25 +02:00
|
|
|
log "INFO" "\nPlease export the line in the your environment. Please replace the dollar signs with with \\\$"
|
2022-05-12 13:00:08 +02:00
|
|
|
docker run --rm -it httpd:latest htpasswd -nb $bc_user $bc_password
|