Browse Source

check netcat

merge-requests/82/head
Steven Foerster 5 years ago
parent
commit
054de94859
  1. 2
      scripts/install.sh
  2. 6
      scripts/wrappers/mistborn_docker.sh

2
scripts/install.sh

@ -125,7 +125,7 @@ sudo systemctl enable ssh
sudo systemctl restart ssh sudo systemctl restart ssh
# Additional tools fail2ban # Additional tools fail2ban
sudo -E apt-get install -y dnsutils fail2ban netcat sudo -E apt-get install -y dnsutils fail2ban
# Install kernel headers # Install kernel headers
if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ]; then if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ]; then

6
scripts/wrappers/mistborn_docker.sh

@ -37,6 +37,12 @@ for SERVICE in "${SERVICES_ARRAY[@]}"; do
fi fi
done done
# check that netcat exists
if ! [ -x "$(command -v nc)" ]; then
echo "Installing netcat"
sudo apt-get install -y netcat
fi
# ensure base is up and listening # ensure base is up and listening
echo "Checking that Mistborn-base has finished starting up..." echo "Checking that Mistborn-base has finished starting up..."

Loading…
Cancel
Save