🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
20 lines
539 B
Bash
Executable File
20 lines
539 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Script de inicio automático para Quantum Player
|
|
CONFIG_FILE="/home/draganel/repos/videoPlayer/.autostart-config"
|
|
|
|
# Verificar si el autostart está habilitado
|
|
if [ -f "$CONFIG_FILE" ]; then
|
|
AUTOSTART_ENABLED=$(cat "$CONFIG_FILE")
|
|
|
|
if [ "$AUTOSTART_ENABLED" = "enabled" ]; then
|
|
cd /home/draganel/repos/videoPlayer
|
|
|
|
# Verificar si ya está corriendo
|
|
if ! pgrep -f "node .output/server/index.mjs" > /dev/null; then
|
|
echo "🚀 Iniciando Quantum Player automáticamente..."
|
|
./start.sh
|
|
fi
|
|
fi
|
|
fi
|