Permissions
This commit is contained in:
parent
896806b6f2
commit
5c7ac4e375
|
@ -642,6 +642,7 @@ function install_xmpp_main {
|
||||||
|
|
||||||
prosodyctl register $MY_USERNAME $DEFAULT_DOMAIN_NAME "$XMPP_PASSWORD"
|
prosodyctl register $MY_USERNAME $DEFAULT_DOMAIN_NAME "$XMPP_PASSWORD"
|
||||||
if [ ! "$?" = "0" ]; then
|
if [ ! "$?" = "0" ]; then
|
||||||
|
remove_xmpp
|
||||||
echo $'Unable to register prosody user'
|
echo $'Unable to register prosody user'
|
||||||
exit 347682
|
exit 347682
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -515,10 +515,11 @@ function lockdown_permissions {
|
||||||
if [ ! -d /var/lib/saned ]; then
|
if [ ! -d /var/lib/saned ]; then
|
||||||
mkdir /var/lib/saned
|
mkdir /var/lib/saned
|
||||||
fi
|
fi
|
||||||
if [ ! -d /etc/prosody ]; then
|
if [ -d /etc/prosody ]; then
|
||||||
chown -R prosody /etc/prosody
|
chown -R prosody /etc/prosody
|
||||||
|
chmod -R 700 /etc/prosody/conf.d
|
||||||
fi
|
fi
|
||||||
if [ ! -d /var/lib/prosody ]; then
|
if [ -d /var/lib/prosody ]; then
|
||||||
chown -R prosody /var/lib/prosody
|
chown -R prosody /var/lib/prosody
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue