diff --git a/justfile b/justfile index 9dabd7b..a953f53 100644 --- a/justfile +++ b/justfile @@ -64,6 +64,10 @@ check-nix: # Run PostgreSQL for development and testing [group('controller')] dev-postgres: + #!/usr/bin/env sh + if podman ps --filter "name=patagia-postgres" --filter "status=running" -q | grep -q .; then + exit 0 + fi mkdir -p "${XDG_RUNTIME_DIR}/patagia-postgres" podman volume exists patagia-postgres || podman volume create patagia-postgres podman run \