瀏覽代碼

added vpn functionality

neal 4 年之前
父節點
當前提交
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 \