was checking wrong folder

This commit is contained in:
Andrew Hurley 2022-11-05 20:45:02 +08:00
parent f70b39d67a
commit 09b048dbd2
1 changed files with 3 additions and 2 deletions

View File

@ -1,10 +1,11 @@
#!/usr/bin/with-contenv bash #!/usr/bin/with-contenv bash
cd /config/keys if [[ -f /defaults/custom-cert.crt && -f /defaults/custom-cert.key ]]; then
if [[ -f custom-cert.crt && -f custom-cert.key ]]; then
echo "Using custom certificate as main certs. Certbot certs now named 'dcert.crt' and 'dcert.key'." 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.crt dcert.crt
mv cert.key dcert.key mv cert.key dcert.key
cp /default/custom-cert.crt cert.crt cp /default/custom-cert.crt cert.crt
cp /default/custom-cert.key cert.key cp /default/custom-cert.key cert.key
chown abc:abc *
fi fi