Browse code

Fix the issue that locale show error messages (bug 1669423)

Change-Id: I3ebf301746844814e4e5154beb0f7d7eaca60fe3
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1058
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
Tested-by: Anish Swaminathan <anishs@vmware.com>

nickshize authored on 2016/06/03 17:56:38
Showing 1 changed files
... ...
@@ -26,17 +26,16 @@ LOGFILE=/var/log/"${PRGNAME}-${LOGFILE}"    #   set log file name
26 26
 /usr/bin/touch /etc/locale.conf
27 27
 /bin/echo "LANG=en_US.UTF-8" > /etc/locale.conf
28 28
 
29
-
30 29
 # Importing the pubkey
31 30
 rpm --import /etc/pki/rpm-gpg/*
32 31
 
33
-#TODO: This should be removed, systemd should be able to create this file
34
-/usr/bin/touch /var/run/utmp
35
-#/sbin/locale-gen.sh
36
-
37 32
 #locale-gen.sh needs /usr/share/locale/locale.alias which is shipped with
38 33
 #  glibc-lang rpm, in some photon installations glibc-lang rpm is not installed
39 34
 #  by default. Call localedef directly here to define locale environment.
40 35
 /usr/bin/localedef -c -i en_US -f UTF-8 en_US.UTF-8
36
+#/sbin/locale-gen.sh
37
+
38
+#TODO: This should be removed, systemd should be able to create this file
39
+#/usr/bin/touch /var/run/utmp
41 40
 
42 41
 exit 0