mirror of
https://github.com/mempool/mempool.git
synced 2025-01-18 21:32:55 +01:00
ops: Add backend git hash check
This commit is contained in:
parent
69578f8086
commit
85a86d4b06
@ -6,6 +6,9 @@ check_mempoolspace_frontend_git_hash() {
|
||||
check_mempoolfoss_frontend_git_hash() {
|
||||
echo -n $(curl -s "https://node${1}.${2}.mempool.space/resources/config.js"|grep GIT_COMMIT_HASH|cut -d "'" -f2|cut -c1-8)
|
||||
}
|
||||
check_mempoolfoss_backend_git_hash() {
|
||||
echo -n $(curl -s "https://node${1}.${2}.mempool.space/api/v1/backend-info"|jq -r .gitCommit 2>/dev/null|cut -c1-8)
|
||||
}
|
||||
check_mempoolspace_frontend_md5_hash() {
|
||||
echo -n $(curl -s --connect-to "::node${1}.${2}.mempool.space:443" https://mempool.space|md5|cut -c1-8)
|
||||
}
|
||||
@ -28,6 +31,8 @@ for site in fmt va1 fra tk7;do
|
||||
echo -n " "
|
||||
check_mempoolfoss_frontend_git_hash $node $site
|
||||
echo -n " "
|
||||
check_mempoolfoss_backend_git_hash $node $site
|
||||
echo -n " "
|
||||
check_mempoolspace_frontend_md5_hash $node $site
|
||||
echo -n " "
|
||||
check_mempoolfoss_frontend_md5_hash $node $site
|
||||
|
Loading…
Reference in New Issue
Block a user