diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2021-02-21 02:55:46 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2021-02-21 03:00:48 +0100 |
commit | 626c0418b3d8c3747a7be8e2620d7c85a8c2c613 (patch) | |
tree | d4b148cbd5b143238448eab1346a9cd603299f31 /test | |
parent | 74c0a11722cf1e01b9a9834e89a07b55eaf01080 (diff) |
Make the ACME API server URL configurable at build time.
Diffstat (limited to 'test')
-rwxr-xr-x | test | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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" \ |