Skip to content

Commit

Permalink
Merge pull request #6 from techandme/ipv4
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Hansson authored Feb 9, 2017
2 parents b7853a6 + acfa637 commit e258129
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wordpress-startup-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions wordpress_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
Expand Down

0 comments on commit e258129

Please sign in to comment.