This repository has been archived by the owner on Nov 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecation: deprecate old way to run the container (actually putting…
… the real commandline thing) and instead add CMD that will take arguments from the environment
- Loading branch information
Showing
3 changed files
with
28 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
|
||
# Dump environment on to file so that we can load it up on the crontab | ||
printenv > /etc/docker-env | ||
EXTRA_PARAMS="" | ||
if [[ ! -z "${TEST_CERT}" ]]; then | ||
EXTRA_PARAMS="--test-cert" | ||
fi; | ||
|
||
# Run cron & tail logs | ||
cron | ||
touch /var/log/cert-update.log | ||
tail -f /var/log/cert-update.log | ||
exec /workdir/certbot-agent certs:update ${EXTRA_PARAMS} ${KONG_ENDPOINT} ${EMAIL} ${DOMAINS} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters