Merge branch 'txoo_health_fix' into 'main'

txoo: healthcheck fix latest file retrieval

See merge request lightning-signer/vls-container!19
This commit is contained in:
dev random 2024-01-31 10:19:08 +00:00
commit 5962a36ae9

View File

@ -4,7 +4,7 @@ set -ex
# Get the latest file with extension .sa from /root/.txoo/$BITCOIN_NETWORK/public directory and get the block number from the file name # Get the latest file with extension .sa from /root/.txoo/$BITCOIN_NETWORK/public directory and get the block number from the file name
TXOO_LOCATION=/root/.txoo/$BITCOIN_NETWORK/public TXOO_LOCATION=/root/.txoo/$BITCOIN_NETWORK/public
latest_block=$(ls -r1t $TXOO_LOCATION | grep '.sa' | head -n1 | cut -d'-' -f1) latest_block=$(ls -r1 $TXOO_LOCATION | grep '.sa' | head -n1 | cut -d'-' -f1)
# Check if no file was found # Check if no file was found
if [ -z "$latest_block" ]; then if [ -z "$latest_block" ]; then