Set a default locale if missing
This commit is contained in:
parent
a1a6a0c9b4
commit
e4445855ac
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user