Last active
December 28, 2016 15:26
-
-
Save alexalouit/98a8a42f9ee6ac370b46d98fda482975 to your computer and use it in GitHub Desktop.
Metronome XMPP sync Let's Encrypt files
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 | |
# | |
# add to section `[renewalparams]` of the file /etc/letsencrypt/renewal/$DOMAIN.conf | |
#post-hook = /root/scripts/metronome-letsencrypt.sh | |
cp -f /etc/letsencrypt/live/$DOMAIN/fullchain.pem /etc/metronome/certs/localhost.cert | |
chown metronome:root /etc/metronome/certs/localhost.cert | |
cp -f /etc/letsencrypt/live/$DOMAIN/privkey.pem /etc/metronome/certs/localhost.key | |
chown metronome:root /etc/metronome/certs/localhost.key | |
/usr/bin/metronomectl reload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment