gate restore

This commit is contained in:
shocknet-justin 2025-08-31 15:49:55 -04:00
parent 2af7941343
commit 08fba7a730

View file

@ -122,6 +122,7 @@ install_lightning_pub() {
return 1
fi
if [ "$upgrade_status" -eq 100 ]; then
# Restore user data AFTER successful NPM install
log "Restoring user data..."
cp "$BACKUP_DIR"/*.sqlite "$INSTALL_DIR/" 2>/dev/null || true
@ -149,6 +150,7 @@ install_lightning_pub() {
chmod 755 "$INSTALL_DIR/logs" 2>/dev/null || true
chmod 755 "$INSTALL_DIR/logs/"*/ 2>/dev/null || true # Subdirs like apps/
chmod 755 "$INSTALL_DIR/metric_cache" 2>/dev/null || true
fi
# Store the commit hash for future update checks
# Note: LATEST_COMMIT will be empty on a fresh install, which is fine.