Last active
May 31, 2019 08:28
-
-
Save ElliottLandsborough/e3f34596ec42e6fed438bf6e5abfedab to your computer and use it in GitHub Desktop.
Ejabberd and znc with letsencrypt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SHELL=/bin/bash | |
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | |
if test /etc/letsencrypt/live/domain.com/privkey.pem -nt /etc/ejabberd/ejabberd.pem ; then | |
cat /etc/letsencrypt/live/domain.com/privkey.pem /etc/letsencrypt/live/domain.com/fullchain.pem > /etc/ejabberd/ejabberd.pem | |
fi | |
if test /etc/letsencrypt/live/domain.com/privkey.pem -nt /home/znc/.znc/znc.pem ; then | |
cat /etc/letsencrypt/live/domain.com/privkey.pem /etc/letsencrypt/live/domain.com/fullchain.pem > /home/znc/.znc/znc.pem | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment