diff --git a/wordpress-startup-script.sh b/wordpress-startup-script.sh index 510b81c..4fa2de5 100644 --- a/wordpress-startup-script.sh +++ b/wordpress-startup-script.sh @@ -588,6 +588,9 @@ echo echo -e "\e[0m" fi +# Prefer IPv6 +sed -i "s|precedence ::ffff:0:0/96 100|#precedence ::ffff:0:0/96 100|g" /etc/gai.conf + ## Reboot echo "Installations finished. System will now reboot..." reboot diff --git a/wordpress_install.sh b/wordpress_install.sh index 97a4ed2..3d837e1 100644 --- a/wordpress_install.sh +++ b/wordpress_install.sh @@ -39,6 +39,9 @@ UNIXPASS=wordpress exit 1 fi +# Prefer IPv4 +sed -i "s|#precedence ::ffff:0:0/96 100|precedence ::ffff:0:0/96 100|g" /etc/gai.conf + # Check Ubuntu version echo "Checking server OS and version..." if [ $OS -eq 1 ]