Browse Source

skip iptables

merge-requests/8/head
Steven Foerster 6 years ago
parent
commit
eb716fb7c3
  1. 2
      .gitlab-ci.yml
  2. 5
      scripts/install.sh

2
.gitlab-ci.yml

@ -16,6 +16,8 @@ stages:
install: install:
stage: test stage: test
image: ubuntu:18.04 image: ubuntu:18.04
variables:
MISTBORN_TEST_SKIP_IPTABLES: "true"
before_script: before_script:
- apt-get update - apt-get update
- apt-get install -y sudo git - apt-get install -y sudo git

5
scripts/install.sh

@ -94,7 +94,12 @@ source ./scripts/subinstallers/platform.sh
echo "Setting up firewall (iptables)" echo "Setting up firewall (iptables)"
if [ ! -f "/etc/iptables/rules.v4" ]; then if [ ! -f "/etc/iptables/rules.v4" ]; then
echo "Setting iptables rules..." echo "Setting iptables rules..."
if [ -z "${MISTBORN_TEST_SKIP_IPTABLES}" ]; then
./scripts/subinstallers/iptables.sh ./scripts/subinstallers/iptables.sh
else
echo "Test conditions: not running iptables.sh"
fi
else else
echo "iptables rules exist. Leaving alone." echo "iptables rules exist. Leaving alone."
fi fi

Loading…
Cancel
Save