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:
commit
5962a36ae9
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user