mirror of
https://github.com/samply/bridgehead.git
synced 2025-06-17 02:30:15 +02:00
refactor addUser code
This commit is contained in:
@ -1,11 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
source lib/functions.sh
|
||||
|
||||
PROJECT=$1
|
||||
|
||||
log "INFO" "Adding encrypted credentials in /etc/bridgehead/$PROJECT.local.conf"
|
||||
read -p "Please choose the component (LDM_AUTH|NNGM_AUTH) you want to add a user to : " COMPONENT
|
||||
read -p "Please enter a username: " USER
|
||||
read -s -p "Please enter a password (will not be echoed): "$'\n' PASSWORD
|
||||
add_basic_auth_user $USER $PASSWORD $COMPONENT $PROJECT
|
Reference in New Issue
Block a user