Move the mumble global password into the password manager

This commit is contained in:
Bob Mottram 2016-11-20 13:07:33 +00:00
parent c53f44cddf
commit d4fcc3420e
1 changed files with 7 additions and 2 deletions

View File

@ -44,7 +44,6 @@ MUMBLE_CONFIG_FILE="mumble-server.ini"
mumble_variables=(MY_USERNAME
MUMBLE_PORT
MUMBLE_SERVER_PASSWORD
ONION_ONLY
ADMIN_USERNAME)
@ -269,7 +268,13 @@ function install_mumble {
update_default_domain
systemctl restart mumble-server
${PROJECT_NAME}-pass -u $MY_USERNAME -a mumble -p "$MUMBLE_SERVER_PASSWORD"
# Change the password for all users
for d in /home/*/ ; do
USERNAME=$(echo "$d" | awk -F '/' '{print $3}')
if [[ $(is_valid_user "$USERNAME") == "1" ]]; then
${PROJECT_NAME}-pass -u "$USERNAME" -a mumble -p "$MUMBLE_SERVER_PASSWORD"
fi
done
function_check configure_firewall_for_mumble
configure_firewall_for_mumble