Set a default locale if missing

This commit is contained in:
Jason Mehring 2015-06-10 17:04:45 -04:00
parent a1a6a0c9b4
commit e4445855ac
No known key found for this signature in database
GPG Key ID: 1BB9B1FB5A4C6DAD

View File

@ -267,6 +267,14 @@ if [ ! -f '/etc/sysconfig/ip6tables' ]; then
cp -p /usr/lib/qubes/init/ip6tables /etc/sysconfig/ip6tables
fi
%if %{fedora} >= 20
# Make sure there is a default locale set so gnome-terminal will start
if [ ! -e /etc/locale.conf ] || ! grep -q LANG /etc/locale.conf; then
touch /etc/locale.conf
echo "LANG=en_US.utf8" >> /etc/locale.conf
fi
%endif
if [ "$1" != 1 ] ; then
# do the rest of %post thing only when updating for the first time...
exit 0