Files
TimeTracker/docker/test-startup.sh
Dries Peeters 1b3a703c04 feat: comprehensive project cleanup and timezone enhancement
- Remove redundant documentation files (DATABASE_INIT_FIX_*.md, TIMEZONE_FIX_README.md)
- Delete unused Docker files (Dockerfile.test, Dockerfile.combined, docker-compose.yml)
- Remove obsolete deployment scripts (deploy.sh) and unused files (index.html, _config.yml)
- Clean up logs directory (remove 2MB timetracker.log, keep .gitkeep)
- Remove .pytest_cache directory

- Consolidate Docker setup to two main container types:
  * Simple container (recommended for production)
  * Public container (for development/testing)

- Enhance timezone support in admin settings:
  * Add 100+ timezone options organized by region
  * Implement real-time timezone preview with current time display
  * Add timezone offset calculation and display
  * Remove search functionality for cleaner interface
  * Update timezone utility functions for database-driven configuration

- Update documentation:
  * Revise README.md to reflect current project state
  * Add comprehensive timezone features documentation
  * Update Docker deployment instructions
  * Create PROJECT_STRUCTURE.md for project overview
  * Remove references to deleted files

- Improve project structure:
  * Streamlined file organization
  * Better maintainability and focus
  * Preserved all essential functionality
  * Cleaner deployment options
2025-08-28 14:52:09 +02:00

33 lines
1.0 KiB
Bash

#!/bin/bash
echo "=== Testing Startup Script ==="
echo "Current working directory: $(pwd)"
echo "Current user: $(whoami)"
echo "Current user ID: $(id)"
echo "Checking if startup script exists..."
if [ -f "/app/docker/start.sh" ]; then
echo "✓ Startup script exists at /app/docker/start.sh"
echo "File permissions: $(ls -la /app/docker/start.sh)"
echo "File owner: $(stat -c '%U:%G' /app/docker/start.sh)"
echo "Testing if script is executable..."
if [ -x "/app/docker/start.sh" ]; then
echo "✓ Startup script is executable"
echo "Script first few lines:"
head -5 /app/docker/start.sh
else
echo "✗ Startup script is NOT executable"
fi
else
echo "✗ Startup script does NOT exist at /app/docker/start.sh"
echo "Contents of /app/docker/:"
ls -la /app/docker/ || echo "Directory /app/docker/ does not exist"
fi
echo "Checking /app directory structure..."
echo "Contents of /app:"
ls -la /app/ || echo "Directory /app/ does not exist"
echo "=== Test Complete ==="