1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-22 07:17:05 +00:00

fix variable (#2439)

This commit is contained in:
Downtown Allday 2024-09-02 21:30:01 -04:00 committed by GitHub
parent 3b8f4a2fe8
commit ca123515aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -272,7 +272,7 @@ if [ -z "${DISABLE_FIREWALL:-}" ]; then
# too. #NODOC
SSH_PORT=$(sshd -T 2>/dev/null | grep "^port " | sed "s/port //" | tr '\n' ' ') #NODOC
if [ -n "$SSH_PORT" ]; then
for $port in $SSH_PORT; do
for port in $SSH_PORT; do
if [ "$port" != "22" ]; then
echo "Opening alternate SSH port $port." #NODOC
ufw_limit "$port" #NODOC