Merge pull request #75 from switnet-ltd/unstable

Disable pre-installed ufw
This commit is contained in:
Luis Guzman 2022-02-18 20:14:47 -06:00 committed by GitHub
commit fff640c495
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -340,6 +340,10 @@ apt-get -y install \
if [ "$LE_SSL" = "yes" ]; then
apt-get -y install \
letsencrypt
if [ "$(dpkg-query -W -f='${Status}' ufw 2>/dev/null | grep -c "ok installed")" == "1" ]; then
echo "# Disable pre-installed ufw to allow ssl challenges validation."
ufw disable
fi
fi
echo "# Check and Install HWE kernel if possible..."