From cdc25464481bab5df640d1e46d119f549927a27c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Dubois?= Date: Tue, 31 Jan 2023 11:46:16 +0100 Subject: [PATCH] post-install: use basename of path in generateldif.sh to define file from elsewhere --- CHANGELOG | 1 + roles/post-install/templates/generateldif.sh.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 93bf681..f0795c4 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -54,6 +54,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * base: use a template for ntp configuration to ease the management of the different cases * logsentry: update config files, add "[logsentry]" in subject, and simplify task * nagios-nrpe: deleted unused variables and added a ntp check server variable +* post-install: use basename of path in generateldif.sh to define file from elsewhere ### Fixed diff --git a/roles/post-install/templates/generateldif.sh.j2 b/roles/post-install/templates/generateldif.sh.j2 index 85472fa..fa76eab 100755 --- a/roles/post-install/templates/generateldif.sh.j2 +++ b/roles/post-install/templates/generateldif.sh.j2 @@ -37,7 +37,7 @@ ${opensshFingerprintED25519}${opensshFingerprintED25519:+;}${opensshFingerprintE ldif_file="/root/${EvoComputerName}.$(date +"%Y%m%d%H%M%S").ldif" cat<"${ldif_file}" -# ldapvi --profile evolix --add --in ${ldif_file} +# ldapvi --profile evolix --add --in $(basename ${ldif_file}) dn: EvoComputerName=${EvoComputerName},ou=computer,dc=evolix,dc=net dnsArecord: $EvoComputerName