From 762ff9bb047b62db1e39f22f0576b4a1551b8bb4 Mon Sep 17 00:00:00 2001 From: Arjan H Date: Fri, 5 Aug 2022 18:46:41 +0200 Subject: [PATCH] Fix missing crl and certs files after running install again --- install | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install b/install index aecb649..6788729 100755 --- a/install +++ b/install @@ -476,6 +476,11 @@ static_web() { cp -rp $cloneDir/static/* . sed -i -e "s|<\!-- BEGIN LABCA_CPS_LOCATION -->.*<\!-- END LABCA_CPS_LOCATION -->|<\!-- BEGIN LABCA_CPS_LOCATION -->http://$LABCA_FQDN/cps/<\!-- END LABCA_CPS_LOCATION -->|g" cps/index.html sed -i -e "s|<\!-- BEGIN LABCA_CERTS_LOCATION -->.*<\!-- END LABCA_CERTS_LOCATION -->|<\!-- BEGIN LABCA_CERTS_LOCATION -->http://$LABCA_FQDN/certs/<\!-- END LABCA_CERTS_LOCATION -->|g" cps/index.html + [ -e $adminDir/data/root-ca.crl ] && cp $adminDir/data/root-ca.crl crl/ || true + [ -e $adminDir/data/root-ca.pem ] && cp $adminDir/data/root-ca.pem certs/ || true + [ -e $adminDir/data/root-ca.der ] && cp $adminDir/data/root-ca.der certs/ || true + [ -e $adminDir/data/issuer/ca-int.pem ] && cp $adminDir/data/issuer/ca-int.pem certs/ || true + [ -e $adminDir/data/issuer/ca-int.pem ] && cp $adminDir/data/issuer/ca-int.der certs/ || true local have_config=$(grep restarted $adminDir/data/config.json | grep true) if [ "$have_config" != "" ]; then