Browse Source

Move the mumble global password into the password manager

Bob Mottram 8 years ago
parent
commit
d4fcc3420e
1 changed files with 7 additions and 2 deletions
  1. 7
    2
      src/freedombone-app-mumble

+ 7
- 2
src/freedombone-app-mumble View File

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