Disable pre-installed ufw #75

Merged
Ark74 merged 1 commits from unstable into master 2022-02-19 02:14:47 +00:00
1 changed files with 4 additions and 0 deletions

View File

@ -340,6 +340,10 @@ apt-get -y install \
if [ "$LE_SSL" = "yes" ]; then if [ "$LE_SSL" = "yes" ]; then
apt-get -y install \ apt-get -y install \
letsencrypt 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 fi
echo "# Check and Install HWE kernel if possible..." echo "# Check and Install HWE kernel if possible..."