mirror of
https://github.com/outbackdingo/labca.git
synced 2026-01-28 02:19:31 +00:00
For now, the images are still built on the target machine for testing, in the end they need to be built in a GitHub action.
24 lines
439 B
Bash
Executable File
24 lines
439 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
baseDir=$(cd $(dirname $0) && pwd)
|
|
dataDir="$baseDir/data"
|
|
|
|
export PKI_ROOT_CERT_BASE="$dataDir/root-ca"
|
|
export PKI_INT_CERT_BASE="$dataDir/issuer/ca-int"
|
|
|
|
cd /opt/wwwstatic
|
|
|
|
$baseDir/apply-nginx
|
|
|
|
cp $PKI_ROOT_CERT_BASE.crl crl/
|
|
cp $PKI_ROOT_CERT_BASE.pem certs/
|
|
cp $PKI_ROOT_CERT_BASE.der certs/
|
|
cp $PKI_INT_CERT_BASE.pem certs/
|
|
cp $PKI_INT_CERT_BASE.der certs/
|
|
|
|
|
|
cd /opt/boulder/labca
|
|
$baseDir/apply-boulder
|