-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix: geoip standalone script should check on CONTAINER_ENGINE variable first #3982
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
base: master
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3982 +/- ##
=======================================
Coverage 99.49% 99.49%
=======================================
Files 3 3
Lines 197 197
=======================================
Hits 196 196
Misses 1 1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest adding this after echo "${_group}Setting up GeoIP integration ..."
line.
Also geoip.sh
may get called from any other directory or using a systemd service, ... .
It's better to check for _detect-container-engine.sh
next to script_dir directory.
With a command like this:
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
The plan is to make /path/to/install/geoip.sh
and ./geoip.sh
source _detect-container-engine.sh
and make it work.
@aminvakil I was initially thinking to make a separate bash script rather than to tell users to use geoip.sh directly. So they would execute "./scripts/update-geoip.sh" What do you think? |
If users were using |
Closes #3953