Unverified Commit 98e5576b authored by pablomendezroyo's avatar pablomendezroyo Committed by GitHub
Browse files

Merge pull request #349 from dappnode/pablo/fix-preinstall

Improve preinstall script
Showing with 3 additions and 3 deletions
+3 -3
......@@ -133,7 +133,7 @@ install_wireguard_dkms() {
fi
}
# LSOF INSTALLATION
# LSOF INSTALLATION: used to scan host port 80 in use, https package installation will deppend on it
install_lsof() {
apt-get update -y
apt-get install lsof -y | tee -a $LOG_FILE
......@@ -144,11 +144,11 @@ install_lsof() {
fi
}
# IPTABLES INSTALLATION
# IPTABLES INSTALLATION: mandatory for docker, on bullseye is not installed by default
install_iptables () {
apt-get update -y
apt-get install iptables -y | tee -a $LOG_FILE
if lsof -v >/dev/null 2>&1 ; then
if iptables -v >/dev/null 2>&1 ; then
echo -e "\e[32m \n\n Verified iptables installation \n\n \e[0m" 2>&1 | tee -a $LOG_FILE
else
echo -e "\e[31m \n\n WARNING: iptables not installed, Docker may not work! \n\n \e[0m" 2>&1 | tee -a $LOG_FILE
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment