refactor: Ensured Usage of Log Function

This should ensure a more consistent script output
This commit is contained in:
Torben Brenner
2022-05-17 15:55:25 +02:00
parent 986dd133bd
commit 54897057d9
5 changed files with 19 additions and 22 deletions

View File

@@ -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