Skip to content

Commit 16df214

Browse files
authored
Merge pull request #5 from remi/fix/add-hex-cacerts-path-to-monitor-setup-script
Add Elixir Hex’s `HEX_CACERTS_PATH` configuration in monitor setup script
2 parents a1f1ca6 + 0ce2ead commit 16df214

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

monitor/setup.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ if [ "$RUNNER_OS" = "macOS" ]; then
4444
echo "NODE_EXTRA_CA_CERTS=/Users/mitmproxyuser/.mitmproxy/mitmproxy-ca-cert.pem" >> $GITHUB_ENV
4545
# set environment variable for the Python requests library to use the certificate
4646
echo "REQUESTS_CA_BUNDLE=/Users/mitmproxyuser/.mitmproxy/mitmproxy-ca-cert.pem" >> $GITHUB_ENV
47+
# set environment variable for the Elixir Hex package manager to use the certificate
48+
echo "HEX_CACERTS_PATH=/Users/mitmproxyuser/.mitmproxy/mitmproxy-ca-cert.pem" >> $GITHUB_ENV
4749

4850
# Enable IP forwarding.
4951
sudo sysctl -w net.inet.ip.forwarding=1
@@ -112,6 +114,8 @@ elif [ "$RUNNER_OS" = "Linux" ]; then
112114
echo "NODE_EXTRA_CA_CERTS=/home/mitmproxyuser/.mitmproxy/mitmproxy-ca-cert.pem" >> $GITHUB_ENV
113115
# set environment variable for the Python requests library to use the certificate
114116
echo "REQUESTS_CA_BUNDLE=/home/mitmproxyuser/.mitmproxy/mitmproxy-ca-cert.pem" >> $GITHUB_ENV
117+
# set environment variable for the Elixir Hex package manager to use the certificate
118+
echo "HEX_CACERTS_PATH=/home/mitmproxyuser/.mitmproxy/mitmproxy-ca-cert.pem" >> $GITHUB_ENV
115119

116120
# setup global redirection
117121
sudo sysctl -w net.ipv4.ip_forward=1
@@ -134,4 +138,4 @@ else
134138

135139
fi
136140

137-
echo "--all done--"
141+
echo "--all done--"

0 commit comments

Comments
 (0)