debug exit

This commit is contained in:
shocknet-justin 2025-08-31 13:30:59 -04:00
parent 6276659c0c
commit 2b91caa24b
2 changed files with 4 additions and 5 deletions

View file

@ -119,10 +119,9 @@ else
# Run install_lightning_pub and capture its exit code directly. # Run install_lightning_pub and capture its exit code directly.
# Exit codes from install_lightning_pub: 0=fresh, 100=upgrade, 2=no-op # Exit codes from install_lightning_pub: 0=fresh, 100=upgrade, 2=no-op
install_lightning_pub "$REPO_URL" install_lightning_pub "$REPO_URL" || pub_install_status=$?
pub_install_status=$?
case $pub_install_status in case ${pub_install_status:-0} in
0) 0)
log "Lightning.Pub fresh installation completed successfully." log "Lightning.Pub fresh installation completed successfully."
pub_upgrade_status=0 # Indicates a fresh install, services should start pub_upgrade_status=0 # Indicates a fresh install, services should start
@ -136,7 +135,7 @@ else
pub_upgrade_status=2 # Special status to skip service restart pub_upgrade_status=2 # Special status to skip service restart
;; ;;
*) *)
log_error "Lightning.Pub installation failed with exit code $pub_install_status" $pub_install_status log_error "Lightning.Pub installation failed with exit code $pub_install_status" "$pub_install_status"
;; ;;
esac esac

View file

@ -57,7 +57,7 @@ start_services() {
if [ "$PUB_UPGRADE" = "0" ] || [ "$PUB_UPGRADE" = "100" ]; then if [ "$PUB_UPGRADE" = "0" ] || [ "$PUB_UPGRADE" = "100" ]; then
if [ "$PUB_UPGRADE" = "100" ]; then if [ "$PUB_UPGRADE" = "100" ]; then
log "${PRIMARY_COLOR}Starting${RESET_COLOR} ${SECONDARY_COLOR}Lightning.Pub${RESET_COLOR} service after upgrade..." t log "${PRIMARY_COLOR}Restarting${RESET_COLOR} ${SECONDARY_COLOR}Lightning.Pub${RESET_COLOR} service after upgrade..."
else else
log "${PRIMARY_COLOR}Starting${RESET_COLOR} ${SECONDARY_COLOR}Lightning.Pub${RESET_COLOR} service..." log "${PRIMARY_COLOR}Starting${RESET_COLOR} ${SECONDARY_COLOR}Lightning.Pub${RESET_COLOR} service..."
fi fi