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

Overwrite server.conf settings only for provided env vars #76

Conversation

schroda
Copy link
Contributor

@schroda schroda commented Jan 19, 2024

Currently on every start the whole server.conf file gets replaced which causes any changed settings during runtime to get lost

closes #63

@schroda schroda force-pushed the feature/overwrite_server_config_settings_with_env_vars_only_if_var_is_set branch 3 times, most recently from dacb220 to 0ea2555 Compare January 19, 2024 23:59
Currently on every start the whole server.conf file gets replaced which causes any changed settings during runtime to get lost
This is the only setting that can not be changed via the UI
#!/bin/bash

# exit early in case the file already exists
if [ -f /home/suwayomi/.local/share/Tachidesk/server.conf ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This means the file will not get updated even if you change env-vars, which feels sort of confusing.

Copy link
Contributor

@Syer10 Syer10 Jan 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will, this script just creates the config for the first time, its not used after that

@schroda schroda force-pushed the feature/overwrite_server_config_settings_with_env_vars_only_if_var_is_set branch from 0ea2555 to e0c6e8b Compare January 21, 2024 11:07
@Syer10 Syer10 merged commit d93e8c3 into Suwayomi:main Jan 21, 2024
1 check failed
@schroda schroda deleted the feature/overwrite_server_config_settings_with_env_vars_only_if_var_is_set branch January 21, 2024 18:13
@chancez
Copy link
Contributor

chancez commented Jan 21, 2024

I think it would still be useful to have a GENERATE_CONFIG option in case we want to manage the config ourselves. I was planning on storing my config in git and this will certainly cause the file to have some diffs if it’s going to always call sed.

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

Successfully merging this pull request may close these issues.

[Feature] Support setting changes during runtime
3 participants