mirror of
https://github.com/getsentry/self-hosted.git
synced 2025-12-08 19:46:14 +00:00
Fix paths (#909)
This commit is contained in:
parent
a0a86e400f
commit
8e34f6e9bc
@ -13,6 +13,8 @@ teardown() {
|
||||
}
|
||||
|
||||
setup() {
|
||||
cd ..
|
||||
|
||||
# Clone the local repo into a temp dir. FWIW `git clone --local` breaks for
|
||||
# me because it depends on hard-linking, which doesn't work across devices,
|
||||
# and I happen to have my workspace and /tmp on separate devices.
|
||||
@ -42,7 +44,7 @@ setup() {
|
||||
esac
|
||||
done
|
||||
|
||||
cd "$_SANDBOX"
|
||||
cd "$_SANDBOX/install"
|
||||
|
||||
trap teardown EXIT
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
source "$(dirname $0)/_test_setup.sh"
|
||||
|
||||
mmdb="geoip/GeoLite2-City.mmdb"
|
||||
mmdb="../geoip/GeoLite2-City.mmdb"
|
||||
|
||||
# Starts with no mmdb, ends up with empty.
|
||||
test ! -f $mmdb
|
||||
|
||||
@ -1,8 +1,10 @@
|
||||
echo "${_group}Setting up GeoIP integration ..."
|
||||
|
||||
install_geoip() {
|
||||
local mmdb='geoip/GeoLite2-City.mmdb'
|
||||
local conf='geoip/GeoIP.conf'
|
||||
cd ../geoip
|
||||
|
||||
local mmdb='GeoLite2-City.mmdb'
|
||||
local conf='GeoIP.conf'
|
||||
local result='Done'
|
||||
|
||||
echo "Setting up IP address geolocation ..."
|
||||
@ -27,6 +29,8 @@ install_geoip() {
|
||||
echo "$result updating IP address geolocation database."
|
||||
fi
|
||||
echo "$result setting up IP address geolocation."
|
||||
|
||||
cd ../install
|
||||
}
|
||||
|
||||
install_geoip
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
source "$(dirname $0)/_test_setup.sh"
|
||||
|
||||
cfg="relay/config.yml"
|
||||
creds="relay/credentials.json"
|
||||
cfg="../relay/config.yml"
|
||||
creds="../relay/credentials.json"
|
||||
|
||||
# Relay files don't exist in a clean clone.
|
||||
test ! -f $cfg
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
echo "${_group}Generating Relay credentials ..."
|
||||
|
||||
RELAY_CONFIG_YML="relay/config.yml"
|
||||
RELAY_CREDENTIALS_JSON="relay/credentials.json"
|
||||
RELAY_CONFIG_YML="../relay/config.yml"
|
||||
RELAY_CREDENTIALS_JSON="../relay/credentials.json"
|
||||
|
||||
ensure_file_from_example $RELAY_CONFIG_YML
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user