From 3c2efec0aca08b61edd22e033a72a11fb16c16e2 Mon Sep 17 00:00:00 2001 From: niten Date: Sat, 2 Sep 2023 10:43:49 -0700 Subject: [PATCH] Add CMD to health check --- nextcloud-container.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nextcloud-container.nix b/nextcloud-container.nix index 68513cd..db454cf 100644 --- a/nextcloud-container.nix +++ b/nextcloud-container.nix @@ -239,6 +239,7 @@ in { links = [ "nextcloud" ]; healthcheck = { test = [ + "CMD" '' curl -sSf 'http://localhost/status.php' | grep '"installed":true' | grep '"maintenance":false' | grep '"needsDbUpgrade":false' || exit 1'' ];