Create directories sooner
This commit is contained in:
parent
0f227587bb
commit
274097865f
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue