Browse Source

generate-ldif: Patched computerOS detection

tags/10.1.0^2
Benoît S. 4 months ago
committed by Gitea
parent
commit
63bfef13ee
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      generate-ldif/templates/generateldif.sh.j2

+ 2
- 1
generate-ldif/templates/generateldif.sh.j2 View File

@@ -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