mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-05 07:27:50 +01:00
fix iptable modification conflict
This commit is contained in:
parent
0c9c258bad
commit
1559d927a4
@ -36,7 +36,7 @@ function gc {
|
|||||||
|
|
||||||
#Add rules to iptables
|
#Add rules to iptables
|
||||||
function addIptableRules {
|
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 5488 -j ACCEPT
|
||||||
#iptables -A INPUT -p tcp --dport 5489 -j ACCEPT
|
#iptables -A INPUT -p tcp --dport 5489 -j ACCEPT
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ fi
|
|||||||
#configure SSH
|
#configure SSH
|
||||||
configSSH
|
configSSH
|
||||||
|
|
||||||
#echo "Adding rules to iptables..."
|
echo "Adding rules to iptables..."
|
||||||
addIptableRules
|
addIptableRules
|
||||||
|
|
||||||
echo "Installing docker compose..."
|
echo "Installing docker compose..."
|
||||||
|
@ -10,7 +10,7 @@ source $base_dir/common.sh
|
|||||||
#configure SSH
|
#configure SSH
|
||||||
configSSH
|
configSSH
|
||||||
|
|
||||||
#echo "Adding rules to iptables..."
|
echo "Adding rules to iptables..."
|
||||||
addIptableRules
|
addIptableRules
|
||||||
|
|
||||||
#Stop Harbor
|
#Stop Harbor
|
||||||
|
Loading…
Reference in New Issue
Block a user