Fix paths (#909)

This commit is contained in:
Chad Whitacre 2021-03-30 10:45:05 -04:00 committed by GitHub
parent a0a86e400f
commit 8e34f6e9bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 8 deletions

View File

@ -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
}

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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