mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 13:01:52 -07:00
Merge pull request #1838 from pablobae/br2-fix-firewall-update-check-ssh-custom-port-rules-config-file
Update v-update-firewall
This commit is contained in:
commit
855ba537cd
1 changed files with 0 additions and 5 deletions
|
@ -51,11 +51,6 @@ if [ $? -ne 0 ]; then
|
||||||
conntrack_ftp='no'
|
conntrack_ftp='no'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Checking custom OpenSSH port
|
|
||||||
sshport=$(grep '^Port ' /etc/ssh/sshd_config | head -1 | cut -d ' ' -f 2)
|
|
||||||
if [[ "$sshport" =~ ^[0-9]+$ ]] && [ "$sshport" -ne "22" ]; then
|
|
||||||
sed -i "s/PORT='22'/PORT=\'$sshport\'/" $rules
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Creating temporary file
|
# Creating temporary file
|
||||||
tmp=$(mktemp)
|
tmp=$(mktemp)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue