Browse Source

added vpn functionality

neal 4 năm trước cách đây
mục cha
commit
5e8fa66251
1 tập tin đã thay đổi với 6 bổ sung và 0 xóa
  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 \