blob: 4400a972cc4176f1decc3a6956f662e6f28a742f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
# adjust to your needs
certdir="/etc/letsencrypt/live/xmpp.uvok.de/"
if [[ -n "$RENEWED_LINEAGE" ]]; then
certdir="$RENEWED_LINEAGE"
fi
echo "Deploying Ejabberd cert for $certdir"
# not sure if reload suffices, better be safe than sorry
systemctl stop ejabberd
# adjust paths to your needs
cp -v "$certdir/fullchain.pem" "/var/lib/ejabberd/certs/fullchain.pem"
cp -v "$certdir/privkey.pem" "/var/lib/ejabberd/certs/key.pem"
chown -v ejabberd: /var/lib/ejabberd/certs/fullchain.pem /var/lib/ejabberd/certs/key.pem
systemctl start ejabberd
|