Browse Source

Setting prosody group

Bob Mottram 7 years ago
parent
commit
70813b5a65
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      src/freedombone-app-xmpp

+ 4
- 1
src/freedombone-app-xmpp View File

@@ -375,7 +375,10 @@ function update_prosody_modules {
375 375
 
376 376
 function upgrade_xmpp {
377 377
     if [ -d /etc/letsencrypt ]; then
378
-        usermod -a -G ssl-cert prosody
378
+        prosody_groups=$(groups prosody)
379
+        if [[ "$prosody_groups" != *'ssl-cert'* ]]; then
380
+            usermod -a -G ssl-cert prosody
381
+        fi
379 382
     fi
380 383
     function_check update_prosody_modules
381 384
     update_prosody_modules