Create directories sooner

This commit is contained in:
Bob Mottram 2016-12-03 11:43:01 +00:00
parent 0f227587bb
commit 274097865f
1 changed files with 6 additions and 6 deletions

View File

@ -424,8 +424,13 @@ function install_xmpp_main {
if [ ! -d /var/lib/prosody ]; then
mkdir /var/lib/prosody
chown -R prosody:prosody /var/lib/prosody
fi
if [ ! -d /etc/prosody/conf.d ]; then
mkdir /etc/prosody/conf.d
fi
chmod -R 700 /etc/prosody/conf.d
chown -R prosody /var/lib/prosody
chown -R prosody /etc/prosody/conf.d
# obtain the prosody modules
cd $INSTALL_DIR
@ -617,11 +622,6 @@ function install_xmpp_main {
update_default_domain
xmpp_create_config
if [ ! -d /etc/prosody/conf.d ]; then
mkdir /etc/prosody/conf.d
fi
chmod -R 700 /etc/prosody/conf.d
chown -R prosody /etc/prosody/conf.d
systemctl restart prosody