From 4d3dfdfa8a5812eba3aa074d86f78d674b864ed8 Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Thu, 15 Jul 2021 13:26:14 +1000 Subject: [PATCH] Adds acme.sh as embedded script --- .gitignore | 1 + backend/embed/acme.sh | 6 ++++++ backend/embed/main.go | 4 ++++ 3 files changed, 11 insertions(+) create mode 100644 backend/embed/acme.sh diff --git a/.gitignore b/.gitignore index fb1624ea..3b0f2056 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,4 @@ test/cypress/fixtures/example.json docker-build data dist +backend/embed/acme.sh diff --git a/backend/embed/acme.sh b/backend/embed/acme.sh new file mode 100644 index 00000000..d6ff2f9d --- /dev/null +++ b/backend/embed/acme.sh @@ -0,0 +1,6 @@ +#!/usr/bin/bash + +echo "This is a placeholder for the official acme.sh script" +echo "that will be embedded into the binary. If you are seeing" +echo "this message then something is not quite right." +exit 1 diff --git a/backend/embed/main.go b/backend/embed/main.go index 8ea9ba1b..3b6c8ad6 100644 --- a/backend/embed/main.go +++ b/backend/embed/main.go @@ -13,3 +13,7 @@ var Assets embed.FS // MigrationFiles are database migrations //go:embed migrations/*.sql var MigrationFiles embed.FS + +// AcmeSh script +//go:embed acme.sh +var AcmeSh embed.FS