mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-22 06:41:36 +01:00
Merge pull request #1164 from ywk253100/161125_iptable
Fix iptable modification conflict
This commit is contained in:
commit
fddb325e16
@ -39,7 +39,7 @@ function gc {
|
||||
|
||||
#Add rules to iptables
|
||||
function addIptableRules {
|
||||
iptables -A INPUT -p tcp --dport 5480 -j ACCEPT
|
||||
iptables -A INPUT -p tcp --dport 5480 -j ACCEPT -w || true
|
||||
#iptables -A INPUT -p tcp --dport 5488 -j ACCEPT
|
||||
#iptables -A INPUT -p tcp --dport 5489 -j ACCEPT
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ fi
|
||||
#configure SSH
|
||||
configSSH
|
||||
|
||||
#echo "Adding rules to iptables..."
|
||||
echo "Adding rules to iptables..."
|
||||
addIptableRules
|
||||
|
||||
echo "Installing docker compose..."
|
||||
|
@ -10,7 +10,7 @@ source $base_dir/common.sh
|
||||
#configure SSH
|
||||
configSSH
|
||||
|
||||
#echo "Adding rules to iptables..."
|
||||
echo "Adding rules to iptables..."
|
||||
addIptableRules
|
||||
|
||||
#Stop Harbor
|
||||
|
Loading…
Reference in New Issue
Block a user