Avoid stig failures when installing xmpp
This commit is contained in:
parent
544385a60c
commit
a4e25d5dc0
|
@ -1051,6 +1051,17 @@ function install_xmpp {
|
|||
chmod -R 700 /etc/prosody/conf.d
|
||||
usermod -a -G www-data prosody
|
||||
|
||||
# Avoid STIG failures
|
||||
if [ -f /usr/lib/ssl/private/xmpp.key ]; then
|
||||
chown root:root /usr/lib/ssl/private/xmpp.key
|
||||
fi
|
||||
if [ -f /usr/lib/ssl/certs/xmpp.crt ]; then
|
||||
chown root:root /usr/lib/ssl/certs/xmpp.crt
|
||||
fi
|
||||
if [ -f /usr/lib/ssl/certs/xmpp.dhparam ]; then
|
||||
chown root:root /usr/lib/ssl/certs/xmpp.dhparam
|
||||
fi
|
||||
|
||||
if [ -d /etc/letsencrypt ]; then
|
||||
usermod -a -G ssl-cert prosody
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue