summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2016-01-05 10:34:24 +0100
committerSimon Rettberg2016-01-05 10:34:24 +0100
commitc740b7da9eb95bfaddd10acdb7696e3a30edb807 (patch)
tree310d8fc34c7f052e1a9ea4816c8c555e1d375cc9
parent[hardware-stats] Sanitize spaces in cpu and system model (diff)
downloadtm-scripts-c740b7da9eb95bfaddd10acdb7696e3a30edb807.tar.gz
tm-scripts-c740b7da9eb95bfaddd10acdb7696e3a30edb807.tar.xz
tm-scripts-c740b7da9eb95bfaddd10acdb7696e3a30edb807.zip
[hardware-stats] Switch to C locale before calling any tools
-rwxr-xr-xremote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats2
1 files changed, 2 insertions, 0 deletions
diff --git a/remote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats b/remote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats
index 686bb444..8de902b3 100755
--- a/remote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats
+++ b/remote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats
@@ -5,6 +5,8 @@
# This script gathers information about the hardware and configuration and reports it back to the server
. /opt/openslx/config
+export LANG=C
+export LC_ALL=C
if [ -z "$SLX_REMOTE_LOG" ]; then
echo "No remote log url given, will not report"