diff --git a/README.md b/README.md index ed18572..a2878a1 100644 --- a/README.md +++ b/README.md @@ -217,6 +217,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64 ## Versions +* **06.04.24:** - Fix deprecated `sync` command & add support for disabling `watch` command * **16.05.23:** - Rebase to alpine 3.18, deprecate arm32v7 (armhf) per [this notice](https://info.linuxserver.io/issues/2023-05-06-armhf/). * **24.07.22:** - Check for `config.yml` instead of the deprecated `config.json`. * **30.03.22:** - Initial Release. diff --git a/root/defaults/abc b/root/defaults/abc index e2e9372..1cf8fc8 100644 --- a/root/defaults/abc +++ b/root/defaults/abc @@ -1,2 +1,2 @@ # min hour day month weekday command -0 */2 * * * /usr/bin/with-contenv python3 -m plextraktsync \ No newline at end of file +0 */2 * * * /usr/bin/with-contenv python3 -m plextraktsync sync \ No newline at end of file diff --git a/root/etc/s6-overlay/s6-rc.d/svc-plextraktsync/run b/root/etc/s6-overlay/s6-rc.d/svc-plextraktsync/run index b75a9c5..a7cad02 100755 --- a/root/etc/s6-overlay/s6-rc.d/svc-plextraktsync/run +++ b/root/etc/s6-overlay/s6-rc.d/svc-plextraktsync/run @@ -1,11 +1,17 @@ #!/usr/bin/with-contenv bash if [ -f /config/.env ] && [ -f /config/.pytrakt.json ]; then - exec \ - s6-setuidgid abc python3 -m plextraktsync watch + if [ -f /config/NO_WATCH ]; then + echo "'plextraktsync watch' is disabled because of 'NO_WATCH' file" + exec \ + sleep infinity + else + exec \ + s6-setuidgid abc python3 -m plextraktsync watch + fi else echo "**** Plex and/or Trakt.tv account info missing. Please manually run an initial sync via the following command on your docker host and restart the container when finished: ****" - echo "docker exec -it plextraktsync plextraktsync" + echo "docker exec -it plextraktsync plextraktsync sync" exec \ sleep infinity fi