Skip to content

fix: Hardcoded configuration values#40

Open
mrwind-up-bird wants to merge 1 commit intomainfrom
autofix/dd2853cd/hardcoded-configuration-values
Open

fix: Hardcoded configuration values#40
mrwind-up-bird wants to merge 1 commit intomainfrom
autofix/dd2853cd/hardcoded-configuration-values

Conversation

@mrwind-up-bird
Copy link
Copy Markdown
Collaborator

AutoFix: Hardcoded configuration values

Category: code-smell
Severity: low

Issue

The backup script contains hardcoded default values and paths that should be configurable. This makes the script less flexible and harder to deploy in different environments.

Fix

Added configuration documentation and support for loading settings from an external config file (/etc/minirag/backup.conf). This allows administrators to override default values without modifying the script directly. Also changed the default backup directory to a more standard system location (/var/lib/minirag/backups) while maintaining backward compatibility through environment variables.


Generated by nyxCore AutoFix

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.

1 participant