13 lines
340 B
Plaintext
13 lines
340 B
Plaintext
|
#!/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
|