Skip to content
Snippets Groups Projects
Commit 27409786 authored by Bob Mottram's avatar Bob Mottram
Browse files

Create directories sooner

parent 0f227587
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment