Skip to content

Commit 8e34f6e

Browse files
authored
Fix paths (#909)
1 parent a0a86e4 commit 8e34f6e

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

install/_test_setup.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ teardown() {
1313
}
1414

1515
setup() {
16+
cd ..
17+
1618
# Clone the local repo into a temp dir. FWIW `git clone --local` breaks for
1719
# me because it depends on hard-linking, which doesn't work across devices,
1820
# and I happen to have my workspace and /tmp on separate devices.
@@ -42,7 +44,7 @@ setup() {
4244
esac
4345
done
4446

45-
cd "$_SANDBOX"
47+
cd "$_SANDBOX/install"
4648

4749
trap teardown EXIT
4850
}

install/geoip-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
source "$(dirname $0)/_test_setup.sh"
33

4-
mmdb="geoip/GeoLite2-City.mmdb"
4+
mmdb="../geoip/GeoLite2-City.mmdb"
55

66
# Starts with no mmdb, ends up with empty.
77
test ! -f $mmdb

install/geoip.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
echo "${_group}Setting up GeoIP integration ..."
22

33
install_geoip() {
4-
local mmdb='geoip/GeoLite2-City.mmdb'
5-
local conf='geoip/GeoIP.conf'
4+
cd ../geoip
5+
6+
local mmdb='GeoLite2-City.mmdb'
7+
local conf='GeoIP.conf'
68
local result='Done'
79

810
echo "Setting up IP address geolocation ..."
@@ -27,6 +29,8 @@ install_geoip() {
2729
echo "$result updating IP address geolocation database."
2830
fi
2931
echo "$result setting up IP address geolocation."
32+
33+
cd ../install
3034
}
3135

3236
install_geoip

install/relay-credentials-test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env bash
22
source "$(dirname $0)/_test_setup.sh"
33

4-
cfg="relay/config.yml"
5-
creds="relay/credentials.json"
4+
cfg="../relay/config.yml"
5+
creds="../relay/credentials.json"
66

77
# Relay files don't exist in a clean clone.
88
test ! -f $cfg

install/relay-credentials.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
echo "${_group}Generating Relay credentials ..."
22

3-
RELAY_CONFIG_YML="relay/config.yml"
4-
RELAY_CREDENTIALS_JSON="relay/credentials.json"
3+
RELAY_CONFIG_YML="../relay/config.yml"
4+
RELAY_CREDENTIALS_JSON="../relay/credentials.json"
55

66
ensure_file_from_example $RELAY_CONFIG_YML
77

0 commit comments

Comments
 (0)