Skip to content

Commit

Permalink
Merge pull request #4 from linuxserver-labs/config-yml
Browse files Browse the repository at this point in the history
check for config.yml instead of the deprecated config.json
  • Loading branch information
aptalca authored Jul 25, 2022
2 parents 4df007c + 683d4dd commit e3599ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ The architectures supported by this image are:

## Application Setup

After creation and first start of the container, `config.json` file will be created in the config folder. However, since Plex and Trakt.tv credentials will be missing, scrobbling and auto-sync will be disabled. Edit the `config.json` file as necessary and manually run the first sync via `docker exec -it plextraktsync plextraktsync`. The wizard will ask for the necessary credentials and then run the first sync. Once that's completed, you can restart the container and scrobbling and auto sync should be active.
After creation and first start of the container, `config.yml` file will be created in the config folder. However, since Plex and Trakt.tv credentials will be missing, scrobbling and auto-sync will be disabled. Edit the `config.yml` file as necessary and manually run the first sync via `docker exec -it plextraktsync plextraktsync`. The wizard will ask for the necessary credentials and then run the first sync. Once that's completed, you can restart the container and scrobbling and auto sync should be active.

By default, sync will run every two hours. The schedule is customizable via the crontab file `/config/crontabs/abc`. Make sure to restart the container after making changes to it.

Expand Down Expand Up @@ -217,4 +217,5 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64

## Versions

* **24.07.22:** - Check for `config.yml` instead of the deprecated `config.json`.
* **30.03.22:** - Initial Release.
6 changes: 3 additions & 3 deletions root/etc/cont-init.d/50-config
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

mkdir -p /config/crontabs

if [ ! -f /config/config.json ]; then
echo "**** First run detected. Initializing PlexTraktSync config.json and printing info ****"
if [ ! -f /config/config.yml ]; then
echo "**** First run detected. Initializing PlexTraktSync config.yml and printing info ****"
chown abc:abc /config
plextraktsync info
fi
Expand All @@ -17,4 +17,4 @@ if [ -f /config/.env ] && [ -f /config/.pytrakt.json ]; then
cp /config/crontabs/abc /etc/crontabs/abc
fi

chown -R abc:abc /config
chown -R abc:abc /config

0 comments on commit e3599ed

Please sign in to comment.