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
 
44
 
45
 mumble_variables=(MY_USERNAME
45
 mumble_variables=(MY_USERNAME
46
                   MUMBLE_PORT
46
                   MUMBLE_PORT
47
-                  MUMBLE_SERVER_PASSWORD
48
                   ONION_ONLY
47
                   ONION_ONLY
49
                   ADMIN_USERNAME)
48
                   ADMIN_USERNAME)
50
 
49
 
269
     update_default_domain
268
     update_default_domain
270
     systemctl restart mumble-server
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
     function_check configure_firewall_for_mumble
279
     function_check configure_firewall_for_mumble
275
     configure_firewall_for_mumble
280
     configure_firewall_for_mumble