run 486 B

123456789101112
  1. #!/usr/bin/with-contenv bash
  2. # if the OpenVPN folder still exists then wait 10 sec before booting tvheadend
  3. if [[ -d "/etc/services.d/openvp" ]]; then
  4. echo "[tvheadend] Waiting 15s for OpenVPN to boot before starting tvheadend" | ts '%Y-%m-%d %H:%M:%S' && sleep 15;
  5. echo "[tvheadend] Public IP: $(curl -s ifconfig.me)" | ts '%Y-%m-%d %H:%M:%S'
  6. fi
  7. IFS=" " read -r -a RUN_ARRAY <<< "$RUN_OPTS"
  8. exec \
  9. s6-setuidgid abc /usr/bin/tvheadend -C -c /config "${RUN_ARRAY[@]}"