debug exit
This commit is contained in:
parent
6276659c0c
commit
2b91caa24b
2 changed files with 4 additions and 5 deletions
|
|
@ -119,10 +119,9 @@ else
|
|||
|
||||
# Run install_lightning_pub and capture its exit code directly.
|
||||
# Exit codes from install_lightning_pub: 0=fresh, 100=upgrade, 2=no-op
|
||||
install_lightning_pub "$REPO_URL"
|
||||
pub_install_status=$?
|
||||
install_lightning_pub "$REPO_URL" || pub_install_status=$?
|
||||
|
||||
case $pub_install_status in
|
||||
case ${pub_install_status:-0} in
|
||||
0)
|
||||
log "Lightning.Pub fresh installation completed successfully."
|
||||
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
|
||||
;;
|
||||
*)
|
||||
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
|
||||
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ start_services() {
|
|||
|
||||
if [ "$PUB_UPGRADE" = "0" ] || [ "$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
|
||||
log "${PRIMARY_COLOR}Starting${RESET_COLOR} ${SECONDARY_COLOR}Lightning.Pub${RESET_COLOR} service..."
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue