Files
videoPlayer/autostart.sh
2025-10-02 01:52:03 -06:00

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