fix: add entrypoint script - wait for auth before starting RTSP server
This commit is contained in:
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
echo "=== tuya-ipc-terminal RTSP Bridge ==="
|
||||
|
||||
# Vérifier si des users sont authentifiés
|
||||
if ./tuya-ipc-terminal auth list 2>/dev/null | grep -q '@'; then
|
||||
echo "Auth trouvée, démarrage du serveur RTSP..."
|
||||
exec ./tuya-ipc-terminal rtsp start --port 8554
|
||||
else
|
||||
echo ""
|
||||
echo "⚠️ Aucun compte authentifié."
|
||||
echo ""
|
||||
echo "Pour configurer, lance depuis le QNAP :"
|
||||
echo " docker exec -it tuya-ipc ./tuya-ipc-terminal auth add eu-central TON_EMAIL --password"
|
||||
echo ""
|
||||
echo "Container en attente (sleep infini)..."
|
||||
exec sleep infinity
|
||||
fi
|
||||
Reference in New Issue
Block a user