Skip to content
Browse files

Make #10034 more robust against missing locales.

Change-Id: Iebf67a53dca4224920412667c39792240b110b77
  • Loading branch information...
svenpanne committed Sep 11, 2019
1 parent 93cb11f commit eb13d46aa3e5b405ba73e71ecb748a105f41a32a
Showing with 7 additions and 1 deletion.
  1. +7 −1 omd/packages/omd/skel/.profile
@@ -24,7 +24,13 @@ export REQUESTS_CA_BUNDLE=$OMD_ROOT/var/ssl/ca-certificates.crt
# manual testing, the plugins may behave differently depending on the
# localization of the user's environment variables. This can lead to confusion
# during tests.
export LANG=C.UTF-8 LC_ALL=C.UTF-8
for i in "C.UTF-8" "en_US.utf8" "C"; do
if echo $INSTALLED_LOCALES | grep -q -w -F "$i"; then
export LANG="$i" LC_ALL="$i"

# Set environment for the monitoring plugins that use state retention (like check_snmp).
export NAGIOS_PLUGIN_STATE_DIRECTORY="$OMD_ROOT/var/monitoring-plugins"

0 comments on commit eb13d46

Please sign in to comment.
You can’t perform that action at this time.