refactor(nginx.sh): improve handling of conflicting packages

Signed-off-by: Dominik Willner th33xitus@gmail.com
This commit is contained in:
th33xitus
2022-05-27 11:52:44 +02:00
parent 64a6ba462a
commit f9d2671930
4 changed files with 76 additions and 73 deletions

View File

@@ -446,18 +446,6 @@ function dependency_check() {
fi
}
function system_check_webui() {
### check system for an installed haproxy service
if [[ $(dpkg-query -f'${Status}' --show haproxy 2>/dev/null) = *\ installed ]]; then
HAPROXY_FOUND="true"
fi
### check system for an installed apache2 service
if [[ $(dpkg-query -f'${Status}' --show apache2 2>/dev/null) = *\ installed ]]; then
APACHE2_FOUND="true"
fi
}
function fetch_webui_ports() {
local port interfaces=("mainsail" "fluidd" "octoprint")