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

Ada: look for config file in ada script dir #18

Open
onnozweers opened this issue Aug 27, 2024 · 0 comments
Open

Ada: look for config file in ada script dir #18

onnozweers opened this issue Aug 27, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@onnozweers
Copy link
Contributor

Raymond launched the idea to distribute Ada via CVMFS. You would then also want to distribute configuration file ada.conf the same way. A problem would then be, that Ada only looks for at /etc/ada.conf and ~/.ada/ada.conf. These are not and cannot be distributed via CVMFS.

Solution: tell Ada to look for an ada.conf in the same dir as where the script is. Something along these lines:

SCRIPT_DIR="$( dirname "${BASH_SOURCE[0]}" )"
source "$SCRIPT_DIR/ada.conf"
@onnozweers onnozweers added enhancement New feature or request good first issue Good for newcomers labels Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant