xmpp: fix default directory for generated certs

pull/53/head
Aleksandr Borisenko 6 years ago committed by Saúl Ibarra Corretgé
parent 0f0a9420a0
commit 0760253ebd
  1. 6
      prosody/rootfs/etc/cont-init.d/10-config

@ -31,6 +31,6 @@ if [[ ! -f /config/certs/$XMPP_AUTH_DOMAIN.crt ]]; then
echo | prosodyctl --config $PROSODY_CFG cert generate $XMPP_AUTH_DOMAIN
fi
# certs vill be created in /var/lib/prosody
mv /var/lib/prosody/*.{crt,key} /config/certs/
rm -f /var/lib/prosody/*.cnf
# certs will be created in /config/data
mv /config/data/*.{crt,key} /config/certs/
rm -f /config/data/*.cnf

Loading…
Cancel
Save