Permalink
Browse files

Fix localization settings not getting properly sourced

Localization settings are not getting properly sourced on
distributions that use the functions script (e.g., RHEL).
Source the functions script for Eucalyptus services
Fixes EUCA-3200
  • Loading branch information...
mspaulding06 committed Aug 15, 2012
1 parent 415c150 commit 7a4874c95d2752dd63dbb2b83bbf90e517404b8d
Showing with 12 additions and 0 deletions.
  1. +4 −0 tools/eucalyptus-cc.in
  2. +4 −0 tools/eucalyptus-cloud.in
  3. +4 −0 tools/eucalyptus-nc.in
View
@@ -78,6 +78,10 @@
# Do NOT "set -e"
+# Use the functions script for distributions that support it (e.g., RHEL)
+# This allows Eucalyptus to use correct localization settings
+[ -f /etc/init.d/functions ] && . /etc/init.d/functions
+
# if we have lsb functions let's source them
WE_HAVE_LSB="N"
if [ -e /lib/lsb/init-functions ]; then
@@ -90,6 +90,10 @@ if [ "$EUID" != "0" ]; then
exit 1
fi
+# Use the functions script for distributions that support it (e.g., RHEL)
+# This allows Eucalyptus to use correct localization settings
+[ -f /etc/init.d/functions ] && . /etc/init.d/functions
+
# if we have lsb functions let's source them
WE_HAVE_LSB="N"
if [ -e /lib/lsb/init-functions ]; then
View
@@ -78,6 +78,10 @@
# Do NOT "set -e"
+# Use the functions script for distributions that support it (e.g., RHEL)
+# This allows Eucalyptus to use correct localization settings
+[ -f /etc/init.d/functions ] && . /etc/init.d/functions
+
# if we have lsb functions let's source them
WE_HAVE_LSB="N"
if [ -e /lib/lsb/init-functions ]; then

0 comments on commit 7a4874c

Please sign in to comment.