Setting prosody group
This commit is contained in:
parent
5096ba9cc1
commit
70813b5a65
|
@ -375,7 +375,10 @@ function update_prosody_modules {
|
|||
|
||||
function upgrade_xmpp {
|
||||
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
|
||||
function_check update_prosody_modules
|
||||
update_prosody_modules
|
||||
|
|
Loading…
Reference in New Issue