Browse Source

generate-ldif: Patched computerOS detection

rotate_elasticsearch_logs
Benoît S. 10 months ago
committed by Gitea
parent
commit
63bfef13ee
  1. 3
      generate-ldif/templates/generateldif.sh.j2

3
generate-ldif/templates/generateldif.sh.j2

@ -25,7 +25,8 @@ EvoComputerName=$(hostname -s)
dnsPTRrecord=$(hostname -f)
HardwareMark=$(dmidecode -s system-manufacturer | grep -v '^#')
computerIP=$(hostname -i | cut -d' ' -f1)
computerOS=$(lsb_release -s -d | sed 's#\..##')
# The sed part does not works for squeeze and previous
computerOS=$(lsb_release -s -d | sed -E 's#\.[0-9]{1,}##')
computerKernel=$(uname -r)
HardwareSerial=$(dmidecode -s system-serial-number | grep -v '^#')

Loading…
Cancel
Save