소스 검색

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 \