certbot-scrypts/own/ssl_update
2018-05-07 22:40:32 +02:00

13 lines
340 B
Bash
Executable File

#!/bin/bash
#renew certs
lxc-attach -n c_proxy -- /opt/renewssl.sh
#copy certs
for i in `lxc-attach -n c_proxy -- ls /etc/letsencrypt/live/ | tail -n +2`; do
mkdir -p ./ssl_certs/$i
for j in privkey.pem fullchain.pem chain.pem cert.pem; do
lxc-attach -n c_proxy -- cat /etc/letsencrypt/live/$i/$j > ./ssl_certs/$i/$j
done
done