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