post-install: add the date into the ldif generated file
This commit is contained in:
parent
46b9baf601
commit
e1ae8fefb9
|
@ -35,8 +35,10 @@ opensshFingerprintECDSA=$(ssh-keyscan -t ecdsa-sha2-nistp256 localhost 2>/dev/nu
|
||||||
Fingerprint="${opensshFingerprintRSA}${opensshFingerprintRSA:+;}"\
|
Fingerprint="${opensshFingerprintRSA}${opensshFingerprintRSA:+;}"\
|
||||||
"${opensshFingerprintED25519}${opensshFingerprintED25519:+;}${opensshFingerprintECDSA}"
|
"${opensshFingerprintED25519}${opensshFingerprintED25519:+;}${opensshFingerprintECDSA}"
|
||||||
|
|
||||||
cat<<EOT>/root/${EvoComputerName}.ldif
|
ldif_file="/root/${EvoComputerName}.$(date +"%Y%m%d%H%M%S").ldif"
|
||||||
# ldapvi --profile evolix --add --in ${EvoComputerName}.ldif
|
|
||||||
|
cat<<EOT>${ldif_file}
|
||||||
|
# ldapvi --profile evolix --add --in ${ldif_file}
|
||||||
|
|
||||||
dn: EvoComputerName=${EvoComputerName},ou=computer,dc=evolix,dc=net
|
dn: EvoComputerName=${EvoComputerName},ou=computer,dc=evolix,dc=net
|
||||||
dnsArecord: $EvoComputerName
|
dnsArecord: $EvoComputerName
|
||||||
|
@ -149,7 +151,7 @@ ServiceVersion: packetfilter
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
if egrep -q 'sd.*RAID' /var/run/dmesg.boot; then
|
if egrep -q 'sd.*RAID' /var/run/dmesg.boot; then
|
||||||
cat<<EOT>>/root/${EvoComputerName}.ldif
|
cat<<EOT>>${ldif_file}
|
||||||
dn: ServiceName=bioctl,EvoComputerName=${EvoComputerName},ou=computer,dc=evolix,dc=net
|
dn: ServiceName=bioctl,EvoComputerName=${EvoComputerName},ou=computer,dc=evolix,dc=net
|
||||||
objectClass: EvoService
|
objectClass: EvoService
|
||||||
NagiosEnabled: TRUE
|
NagiosEnabled: TRUE
|
||||||
|
|
Loading…
Reference in a new issue