Created
September 13, 2016 10:22
-
-
Save gp187/677988fcab3f095937612a27af35e5c2 to your computer and use it in GitHub Desktop.
Fix LC_ALL = (unset) on AWS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# run as root only | |
if [[ $EUID -ne 0 ]] ; then | |
echo "This script must be run with root access\e[49m" | |
exit 1 | |
fi | |
echo LC_ALL="en_US.UTF-8" >> /etc/environment | |
locale-gen "en_US.UTF-8" | |
dpkg-reconfigure locales | |
# Reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment