diff --git a/bin/install-federated.sh b/bin/install-federated.sh index 71b7552..506e1a6 100755 --- a/bin/install-federated.sh +++ b/bin/install-federated.sh @@ -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 diff --git a/lib/checks.sh b/lib/checks.sh index 40d3bc7..cf7e22d 100644 --- a/lib/checks.sh +++ b/lib/checks.sh @@ -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