Added DNS back to start and config. Fixed port check

This commit is contained in:
Derek Crudgington 2023-01-23 18:09:30 +00:00
parent 6e5c874820
commit 4d1b2fe72b
2 changed files with 2 additions and 3 deletions

View File

@ -92,7 +92,7 @@ check_ports
config_network
# Configure and start each federated service
for i in postgresql ldap mail collabora proxy nextcloud matrix element listmonk vaultwarden panel wireguard jitsi connector; do
for i in dns postgresql ldap mail collabora proxy nextcloud matrix element listmonk vaultwarden panel wireguard jitsi connector; do
config_$i
start_$i
done

View File

@ -59,8 +59,7 @@ check_ports() {
# Check if ss command exists
if command -v ss &> /dev/null; then
# Check every port we need if it's in use
# for i in 25 53 80 143 389 587 993 8000; do
for i in 2344; do
for i in 25 53 80 143 389 587 993 8000; do
SS=`ss -tulwn | grep LISTEN | awk '{ print $5 }' | awk -F: '{ print $NF }' | grep "^$i$" | head -1`
# If port 53 (dns) in use by system-resolvd (Ubuntu) then auto fix
if [ "$SS" == 53 ]; then