[gbm-web] Make heartbeat check only gpg-agent



commit 8d91721173a6909a9a5ccb4fc195a4398aad8d74
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Mon Jul 13 11:06:52 2020 +0200

    Make heartbeat check only gpg-agent

 flat-manager/heartbeat | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/flat-manager/heartbeat b/flat-manager/heartbeat
index 6643c0e..7e2fefc 100755
--- a/flat-manager/heartbeat
+++ b/flat-manager/heartbeat
@@ -1,5 +1,6 @@
 #!/bin/bash
-status="$(curl -s -o /dev/null -w "%{http_code}" http://localhost:8080/status)"
-[[ "${status}" != "200" ]] && exit 1
+set -x
+set -e
 
+gpg-connect-agent /bye
 exec /usr/bin/gpg --batch --yes -b --output /dev/null /bin/true


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]