diff --git a/services/torrents/config/99-cron-start b/services/torrents/config/99-cron-start index 65d2f3e..0314602 100644 --- a/services/torrents/config/99-cron-start +++ b/services/torrents/config/99-cron-start @@ -1,6 +1,4 @@ #!/command/with-contenv bash -chmod +x /bin/set_port.sh -(crontab -l ; echo "* * * * * /bin/set_port.sh") | sort - | uniq - | crontab - - +(crontab -l ; echo "* * * * * run-parts /etc/periodic/1min") | sort - | uniq - | crontab - crond diff --git a/services/torrents/config/set_port.sh b/services/torrents/config/setPortForward old mode 100644 new mode 100755 similarity index 100% rename from services/torrents/config/set_port.sh rename to services/torrents/config/setPortForward diff --git a/services/torrents/docker-compose.yml b/services/torrents/docker-compose.yml index 5282408..3cd02b2 100644 --- a/services/torrents/docker-compose.yml +++ b/services/torrents/docker-compose.yml @@ -25,10 +25,10 @@ services: - ${NASCOMPOSE_SERVICES?}/torrents${TORRENT_SUFFIX?}/volumes/qbittorrent_config/:/config/ - ${NASCOMPOSE_DATA?}/torrents${TORRENT_SUFFIX?}/:/data/ # Configuration - - ${NASCOMPOSE_SERVICES?}/torrents${TORRENT_SUFFIX?}/config/set_port.sh:/bin/set_port.sh:ro - ${NASCOMPOSE_SERVICES?}/torrents${TORRENT_SUFFIX?}/config/01-natpmp-install:/etc/cont-init.d/01-natpmp-install:ro - ${NASCOMPOSE_SERVICES?}/torrents${TORRENT_SUFFIX?}/config/98-gateway-setup:/etc/cont-init.d/98-gateway-setup:ro - ${NASCOMPOSE_SERVICES?}/torrents${TORRENT_SUFFIX?}/config/99-cron-start:/etc/cont-init.d/99-cron-start:ro + - ${NASCOMPOSE_SERVICES?}/torrents${TORRENT_SUFFIX?}/config/setPortForward:/etc/periodic/1min/setPortForward:ro # Secrets - ${NASCOMPOSE_SERVICES?}/torrents${TORRENT_SUFFIX?}/secrets/wg0.conf:/config/wireguard/wg0.conf:ro restart: unless-stopped