12 lines
373 B
Bash
12 lines
373 B
Bash
#!/usr/bin/with-contenv bash
|
|
|
|
if [[ -f /defaults/custom-cert.crt && -f /defaults/custom-cert.key ]]; then
|
|
echo "Using custom certificate as main certs. Certbot certs now named 'dcert.crt' and 'dcert.key'."
|
|
cd /config/keys
|
|
mv cert.crt dcert.crt
|
|
mv cert.key dcert.key
|
|
cp /default/custom-cert.crt cert.crt
|
|
cp /default/custom-cert.key cert.key
|
|
chown abc:abc *
|
|
fi
|