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

Zurg config.yml overwritten #1

Closed
jakeau opened this issue Dec 17, 2023 · 3 comments
Closed

Zurg config.yml overwritten #1

jakeau opened this issue Dec 17, 2023 · 3 comments

Comments

@jakeau
Copy link

jakeau commented Dec 17, 2023

Describe the bug

Each time the docker container restarts it overwrites the ./RD/config.yml file.

To Reproduce

Change any value in it or add an additional filter for 4k (What I was doing for 4k movies). Then restart config resets

Expected behavior

Changes made to the config file should be maintained.

Screenshots

Nil

Please complete the following information:

  • OS: Ubuntu Server
  • Version: 22.04
  • Supporting Applications: Docker Compose

Additional context

Thanks for putting this together

@I-am-PUID-0
Copy link
Owner

Hi @jakeau,

Thanks for the feedback. That is the intended action. For a modified config.yml file to be used, it should be placed in the /config directory.

  ## Location of configuration files. If a Zurg config.yml and/or Zurg app is placed here, it will be used to override the default configuration and/or app used at startup 
  - /pd_zurg/config:/config

The original reasoning for this process was to allow user selection for persisting any Zurg cached data, such as the Zurg process output to /zurg/RD/data or /zurg/RD/logs, by mapping or not, the /zurg/RD directory to the host. In other words, if a user does not map /zurg/RD to the host, then any Zurg cached data is cleared by restarting the container.

I know none of this is clearly defined in the README or Wiki as of yet, but I hope to have those populated in the coming days.

I do see how allowing modifications of the config.yml in the working directory -- /zurg/RD -- may be of benefit, so I'll reevaluate the current process for future implementation. I'm currently working on some major back-end changes to allow for automatic updates of the Zurg application, much like the automatic update of plex_debrid, so I won't be able to get to any process changes until that's released.

@codevski
Copy link

Thanks. This wasn't clear but copying the config file in RD into /config seems to have worked. Would this become a problem if you have both AD and RD active but with different settings (assuming they both use config.yml)

@I-am-PUID-0
Copy link
Owner

I-am-PUID-0 commented Jan 3, 2024

Update: As of Version [1.0.3], If a config.yml is found in the debrid directory -- /zurg/RD or /zurg/AD -- it will now be utilized and retain any changes previously made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants