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
 
375
 
376
 function upgrade_xmpp {
376
 function upgrade_xmpp {
377
     if [ -d /etc/letsencrypt ]; then
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
     fi
382
     fi
380
     function_check update_prosody_modules
383
     function_check update_prosody_modules
381
     update_prosody_modules
384
     update_prosody_modules