Skip to content

Commit

Permalink
ipv4 already set
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Hansson authored Feb 9, 2017
1 parent e258129 commit 606083d
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions wordpress_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 606083d

Please sign in to comment.