Skip to content

Commit

Permalink
WIP - initlestscrypt v2
Browse files Browse the repository at this point in the history
  • Loading branch information
noliveleger committed Aug 16, 2023
1 parent 466dd01 commit 175a9af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions helpers/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,13 @@ def _get_value(property_, true_value='', false_value='#',
if config.local_install
else _get_value('service_account_whitelisted_hosts')
),
'DOCKER_COMPOSE_CMD': _get_value(
'compose_version', 'docker-compose', 'docker', 'v1'
),
# Keep leading space in front of suffix if any
'DOCKER_COMPOSE_SUFFIX': _get_value(
'compose_version', '', ' compose', 'v1'
)
}

@staticmethod
Expand Down
2 changes: 1 addition & 1 deletion templates/nginx-certbot/init-letsencrypt.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ DATA_PATH="./data/certbot"
EMAIL="" # Adding a valid address is strongly recommended
STAGING=0 # Set to 1 if you're testing your setup to avoid hitting request limits
MKDIR_CMD=$$(which mkdir)
DOCKER_COMPOSE_CMD=$$(which docker-compose)
DOCKER_COMPOSE_CMD="$$(which ${DOCKER_COMPOSE_CMD})${DOCKER_COMPOSE_SUFFIX}"
CURL_CMD=$$(which curl)


Expand Down

0 comments on commit 175a9af

Please sign in to comment.