neal 4 лет назад
Родитель
Сommit
5e8fa66251
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      root/etc/services.d/tvheadend/run

+ 6 - 0
root/etc/services.d/tvheadend/run

@@ -1,5 +1,11 @@
 #!/usr/bin/with-contenv bash
 
+# if the OpenVPN folder still exists then wait 10 sec before booting tvheadend
+if [[ -d "/etc/services.d/openvp" ]]; then
+    echo "[tvheadend] Waiting 15s for OpenVPN to boot before starting tvheadend" | ts '%Y-%m-%d %H:%M:%S' && sleep 15;
+    echo "[tvheadend] Public IP: $(curl -s ifconfig.me)" | ts '%Y-%m-%d %H:%M:%S'
+fi
+
 IFS=" " read -r -a RUN_ARRAY <<< "$RUN_OPTS"
 
 exec \