From d4fcc3420efc26abbaf30eba10a7174bb9518049 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 20 Nov 2016 13:07:33 +0000 Subject: [PATCH] Move the mumble global password into the password manager --- src/freedombone-app-mumble | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/freedombone-app-mumble b/src/freedombone-app-mumble index 343be70c..12df9dfb 100755 --- a/src/freedombone-app-mumble +++ b/src/freedombone-app-mumble @@ -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