#!/bin/bash # Debug script to check what's in the Nix store STORE_PATH="/nix/store/i3fa1p0y8mcyljzfsj6k65qfpmd4yyaf-systant-0.1.0" echo "=== Checking Nix store contents ===" echo "Store path: $STORE_PATH" echo echo "=== Top level contents ===" ls -la "$STORE_PATH/" echo echo "=== Looking for COOKIE files ===" find "$STORE_PATH" -name "*COOKIE*" -o -name "*cookie*" 2>/dev/null || echo "No COOKIE files found" echo echo "=== releases directory ===" if [ -d "$STORE_PATH/releases" ]; then ls -la "$STORE_PATH/releases/" else echo "No releases directory found" fi echo echo "=== bin directory ===" if [ -d "$STORE_PATH/bin" ]; then ls -la "$STORE_PATH/bin/" else echo "No bin directory found" fi echo echo "=== Checking startup script ===" if [ -f "$STORE_PATH/bin/systant" ]; then echo "Startup script exists, checking for COOKIE references:" grep -n "COOKIE" "$STORE_PATH/bin/systant" || echo "No COOKIE references in startup script" else echo "No startup script found" fi