bridgehead/lib/add_bc_user.sh

11 lines
352 B
Bash
Raw Permalink 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
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
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