Skip to content

Instantly share code, notes, and snippets.

@alexalouit
Last active December 28, 2016 15:26
Show Gist options
  • Save alexalouit/98a8a42f9ee6ac370b46d98fda482975 to your computer and use it in GitHub Desktop.
Save alexalouit/98a8a42f9ee6ac370b46d98fda482975 to your computer and use it in GitHub Desktop.
Metronome XMPP sync Let's Encrypt files
#!/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