Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve #8 and #9 #10

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion root/defaults/abc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# min hour day month weekday command
0 */2 * * * /usr/bin/with-contenv python3 -m plextraktsync
0 */2 * * * /usr/bin/with-contenv python3 -m plextraktsync sync
12 changes: 9 additions & 3 deletions root/etc/s6-overlay/s6-rc.d/svc-plextraktsync/run
Original file line number Diff line number Diff line change
@@ -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