Setting prosody group

This commit is contained in:
Bob Mottram 2017-08-07 21:40:19 +01:00
parent 5096ba9cc1
commit 70813b5a65
1 changed files with 4 additions and 1 deletions

View File

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