Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8393783
geoip.sh
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
988 B
Subscribers
None
geoip.sh
View Options
echo
"
${
_group
}
Setting up GeoIP integration ..."
install_geoip
()
{
cd
../geoip
local
mmdb
=
'GeoLite2-City.mmdb'
local
conf
=
'GeoIP.conf'
local
result
=
'Done'
echo
"Setting up IP address geolocation ..."
if
[[
!
-f
"
$mmdb
"
]]
;
then
echo
-n
"Installing (empty) IP address geolocation database ... "
cp
"
$mmdb
.empty"
"
$mmdb
"
echo
"done."
else
echo
"IP address geolocation database already exists."
fi
if
[[
!
-f
"
$conf
"
]]
;
then
echo
"IP address geolocation is not configured for updates."
echo
"See https://develop.sentry.dev/self-hosted/geolocation/ for instructions."
result
=
'Error'
else
echo
"IP address geolocation is configured for updates."
echo
"Updating IP address geolocation database ... "
if
!
$dcr
geoipupdate
;
then
result
=
'Error'
fi
echo
"
$result
updating IP address geolocation database."
fi
echo
"
$result
setting up IP address geolocation."
cd
../install
}
install_geoip
echo
"
${
_endgroup
}
"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jun 4, 7:17 PM (3 d, 5 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3249150
Attached To
R206 getsentry-onpremise
Event Timeline
Log In to Comment