aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2021-02-21 02:55:46 +0100
committerGuilhem Moulin <guilhem@fripost.org>2021-02-21 03:00:48 +0100
commit626c0418b3d8c3747a7be8e2620d7c85a8c2c613 (patch)
treed4b148cbd5b143238448eab1346a9cd603299f31 /test
parent74c0a11722cf1e01b9a9834e89a07b55eaf01080 (diff)
Make the ACME API server URL configurable at build time.
Diffstat (limited to 'test')
-rwxr-xr-xtest6
1 files changed, 2 insertions, 4 deletions
diff --git a/test b/test
index 50b7382..2be9303 100755
--- a/test
+++ b/test
@@ -85,7 +85,8 @@ elif [ "$MODE" = "dev" ]; then
lacme_www_user=_lacme-www \
lacme_www_group=nogroup \
lacme_client_user=_lacme-client \
- lacme_client_group=nogroup
+ lacme_client_group=nogroup \
+ acmeapi_server="https://acme-staging-v02.api.letsencrypt.org/directory"
fi
ACCOUNT_KEY="$BUILDDIR/account.key"
@@ -162,9 +163,6 @@ run() {
sudo install -oroot -groot -m0644 -vt "$rootdir/usr/share/lacme" certs-staging/*.pem
sudo install -oroot -groot -m0644 -vT "$BUILDDIR/certs-staging/ca-certificates.crt" \
"$rootdir/usr/share/lacme/ca-certificates.crt"
- sudo schroot -d"/" -c "$CHROOT" -r -- perl -pi -e \
- 's|\b\Qhttps://acme-v02.api.letsencrypt.org/\E\b|https://acme-staging-v02.api.letsencrypt.org/|' \
- "/usr/libexec/lacme/client" "/etc/lacme/lacme.conf"
# install account key and configure lacme accordingly
sudo install -oroot -groot -m0600 -vT -- "$BUILDDIR/account.key" \