Initial commit: Video player with HLS support
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
19
autostart.sh
Executable file
19
autostart.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user