clean logs

This commit is contained in:
shocknet-justin 2025-08-27 23:51:52 -04:00
parent 6987240830
commit f31cc8e75d
2 changed files with 2 additions and 7 deletions

View file

@ -15,8 +15,6 @@ get_log_info() {
MAX_WAIT_TIME=360 # Maximum wait time in seconds (6 minutes)
WAIT_INTERVAL=5 # Time to wait between checks in seconds
log "Checking wallet status... This may take a moment."
TIMESTAMP_FILE="/tmp/pub_install_timestamp"
# Get the modification time of the timestamp file as a UNIX timestamp
ref_timestamp=$(stat -c %Y "$TIMESTAMP_FILE")
@ -73,6 +71,8 @@ get_log_info() {
sleep $WAIT_INTERVAL
done
log "Checking wallet status... This may take a moment."
if [ -z "$latest_entry" ]; then
log "Can't retrieve wallet status, check the service logs."
exit 1

View file

@ -70,11 +70,6 @@ EOF
exit 1
fi
if [ "$LND_STATUS" = "0" ] || [ "$LND_STATUS" = "1" ]; then
log "Giving ${SECONDARY_COLOR}LND${RESET_COLOR} a few seconds to start before starting ${SECONDARY_COLOR}Lightning.Pub${RESET_COLOR}..."
sleep 10
fi
# Always attempt to start or restart Lightning.Pub
if systemctl --user is-active --quiet lightning_pub; then
if [ "$PUB_UPGRADE" = "100" ]; then