Add CMD to health check

This commit is contained in:
niten 2023-09-02 10:43:49 -07:00
parent 4c0c704f91
commit 3c2efec0ac
1 changed files with 1 additions and 0 deletions

View File

@ -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''
];