DEV: allow multiple configure runs (#828)
authorJeff Wong <awole20@gmail.com>
Mon, 12 Aug 2024 14:43:26 +0000 (07:43 -0700)
committerGitHub <noreply@github.com>
Mon, 12 Aug 2024 14:43:26 +0000 (07:43 -0700)
commit9f80d83b321bc06860ef6a1fac4ab727668d448a
tree232cd979a7ee1e6f5700424dfac1eca27324d563
parent618ab518500baacc7889d75ab45361aeb9054e87
DEV: allow multiple configure runs (#828)

when we have already run an initial setup, fall back to just checking for
socket, rather than outright failing if the init script has already been run.

This allows 'configure' steps to be re-run in standalone cases.

eg: `launcher2 configure app && launcher2 configure app`

current version: fails as it's missing the install_postgres file
with PR: checks for psql socket, and builds.

doing something like `launcher2 start app && launcher2 configure app` would also
print out a more correct error message, "postgres already running stop container"
templates/postgres.15.template.yml
templates/postgres.template.yml