summaryrefslogtreecommitdiffstats
path: root/bin/deploy_cert.fullchain-privkey.sh
blob: 994628198a332205d773cdf8388b8a33b035048c (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

set -e

DIRECTORY="$(dirname ${FULLCHAINFILE})"
FILE="cert.fullchain-privkey-${TIMESTAMP}.pem"

cat "${FULLCHAINFILE}" "${KEYFILE}" > "${DIRECTORY}/${FILE}"
ln -sf "${FILE}" "${DIRECTORY}/cert.fullchain-privkey.pem"