Update install_pve7.sh

This commit is contained in:
spiritLHLS 2023-02-13 19:36:50 +08:00 committed by GitHub
parent b55fdedb3d
commit af2b4cdf17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,10 +14,13 @@ if ! command -v curl > /dev/null 2>&1; then
apt-get install -y curl apt-get install -y curl
fi fi
curl -L https://raw.githubusercontent.com/spiritLHLS/one-click-installation-script/main/check_sudo.sh -o check_sudo.sh && chmod +x check_sudo.sh && bash check_sudo.sh > /dev/null 2>&1 curl -L https://raw.githubusercontent.com/spiritLHLS/one-click-installation-script/main/check_sudo.sh -o check_sudo.sh && chmod +x check_sudo.sh && bash check_sudo.sh > /dev/null 2>&1
# if ! command -v ufw > /dev/null 2>&1; then current_priority=$(cat /etc/gai.conf | grep -i "precedence" | awk '{print $3}')
# apt-get install -y ufw if [ $current_priority != "4" ]; then
# fi sudo sed -i 's/precedence ::ffff:0:0\/96 100/precedence ::ffff:0:0\/96 40/g' /etc/gai.conf
# ufw disable echo "The network priority has been changed to IPv4."
else
echo "The network priority is already set to IPv4."
fi
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