Bob Mottram 8 лет назад
Родитель
Сommit
70813b5a65
1 измененных файлов: 4 добавлений и 1 удалений
  1. 4
    1
      src/freedombone-app-xmpp

+ 4
- 1
src/freedombone-app-xmpp Просмотреть файл

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