Update install_pve7.sh

This commit is contained in:
spiritLHLS 2023-02-13 19:47:11 +08:00 committed by GitHub
parent 9f674ffaeb
commit b3d6b189d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,8 +25,8 @@ fi
if [ "$ip_type" = "IPv6" ] && [ "$priority" -lt "100" ]; then if [ "$ip_type" = "IPv6" ] && [ "$priority" -lt "100" ]; then
echo "precedence ::/0 100" > /etc/gai.conf echo "precedence ::/0 100" > /etc/gai.conf
fi fi
# sysctl -w net.ipv6.conf.all.disable_ipv6=1 sysctl -w net.ipv6.conf.all.disable_ipv6=1
# sysctl -w net.ipv6.conf.default.disable_ipv6=1 sysctl -w net.ipv6.conf.default.disable_ipv6=1
apt-get install gnupg -y apt-get install gnupg -y
if ! nc -z localhost 7789; then if ! nc -z localhost 7789; then
iptables -A INPUT -p tcp --dport 7789 -j ACCEPT iptables -A INPUT -p tcp --dport 7789 -j ACCEPT