mirror of
https://github.com/samply/bridgehead.git
synced 2025-12-15 03:47:31 +01:00
refactor: Ensured Usage of Log Function
This should ensure a more consistent script output
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
#!/bin/bash -e
|
||||
source lib/functions.sh
|
||||
|
||||
log "This script add's a user with password to the bridghead"
|
||||
log "INFO" "This script add's a user with password to the bridghead"
|
||||
|
||||
read -p 'Username: ' bc_user
|
||||
read -sp 'Password: ' bc_password
|
||||
|
||||
echo
|
||||
|
||||
log "Please export the line in the your environment. Please replace the dollar signs with with \\\$"
|
||||
log "INFO" "\nPlease 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
|
||||
|
||||
Reference in New Issue
Block a user