diff --git a/wordpress_install.sh b/wordpress_install.sh index 3d837e1..713d579 100644 --- a/wordpress_install.sh +++ b/wordpress_install.sh @@ -116,17 +116,6 @@ fi mkdir $SCRIPTS fi -# Prefer IPv4 -sed -i "s|#precedence ::ffff:0:0/96 100|precedence ::ffff:0:0/96 100|g" /etc/gai.conf - -# Set locales -apt install language-pack-en-base -y -sudo locale-gen "sv_SE.UTF-8" && sudo dpkg-reconfigure --frontend=noninteractive locales - -# Change DNS -echo "nameserver 8.26.56.26" > /etc/resolvconf/resolv.conf.d/base -echo "nameserver 8.20.247.20" >> /etc/resolvconf/resolv.conf.d/base - # Check network sudo ifdown $IFACE && sudo ifup $IFACE nslookup google.com @@ -138,6 +127,14 @@ else echo "Network OK." fi +# Set locales +apt install language-pack-en-base -y +sudo locale-gen "sv_SE.UTF-8" && sudo dpkg-reconfigure --frontend=noninteractive locales + +# Change DNS +echo "nameserver 8.26.56.26" > /etc/resolvconf/resolv.conf.d/base +echo "nameserver 8.20.247.20" >> /etc/resolvconf/resolv.conf.d/base + # Check where the best mirrors are and update echo "Locating the best mirrors..." apt update -q2