was checking wrong folder
This commit is contained in:
parent
f70b39d67a
commit
09b048dbd2
|
|
@ -1,10 +1,11 @@
|
|||
#!/usr/bin/with-contenv bash
|
||||
|
||||
cd /config/keys
|
||||
if [[ -f custom-cert.crt && -f custom-cert.key ]]; then
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue