script logs

This commit is contained in:
shocknet-justin 2025-11-27 01:02:44 -05:00
parent 39466ef4a7
commit 519a4575c1
2 changed files with 2 additions and 2 deletions

View file

@ -120,7 +120,7 @@ get_log_info() {
fi fi
elif [ -f "$DATA_DIR/app.nprofile" ]; then elif [ -f "$DATA_DIR/app.nprofile" ]; then
app_nprofile=$(cat "$DATA_DIR/app.nprofile") app_nprofile=$(cat "$DATA_DIR/app.nprofile")
log "Node is already set up. Use this nprofile to invite guest users:" log "${SECONDARY_COLOR}Lightning.Pub${RESET_COLOR} is already set up. Use this nprofile to invite guest users:"
log "${SECONDARY_COLOR}$app_nprofile${RESET_COLOR}" log "${SECONDARY_COLOR}$app_nprofile${RESET_COLOR}"
break break
fi fi

View file

@ -34,7 +34,7 @@ install_lightning_pub() {
# Decide flow based on whether a valid previous installation exists. # Decide flow based on whether a valid previous installation exists.
if [ -f "$INSTALL_DIR/.installed_commit" ] || [ -f "$INSTALL_DIR/db.sqlite" ]; then if [ -f "$INSTALL_DIR/.installed_commit" ] || [ -f "$INSTALL_DIR/db.sqlite" ]; then
# --- UPGRADE PATH --- # --- UPGRADE PATH ---
log "Existing installation found. Checking for updates..." log "Existing ${SECONDARY_COLOR}Lightning.Pub${RESET_COLOR} installation found. Checking for updates..."
# Check if update is needed by comparing commit hashes # Check if update is needed by comparing commit hashes
API_RESPONSE=$(download_stdout "https://api.github.com/repos/${REPO}/commits/${BRANCH}" 2>&1 | tee /tmp/api_response.log) API_RESPONSE=$(download_stdout "https://api.github.com/repos/${REPO}/commits/${BRANCH}" 2>&1 | tee /tmp/api_response.log)