Added DNS back to start and config. Fixed port check
This commit is contained in:
parent
6e5c874820
commit
4d1b2fe72b
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user