From a5006fae93acd49a991d450af8c0e94340a617c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Kervella?= Date: Thu, 17 May 2018 21:27:21 +0000 Subject: [PATCH] Fix wrong variable name --- install_re2o.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install_re2o.sh b/install_re2o.sh index 5d873f39..cca0cc09 100755 --- a/install_re2o.sh +++ b/install_re2o.sh @@ -204,12 +204,12 @@ install_ldap() { echo "Installing slapd package: Done" echo "Hashing the LDAP password ..." - hashed_ldap_passwd="$(slappasswd -s $1)" + hashed_ldap_passwd="$(slappasswd -s $password)" echo "Hash of the password: $hashed_ldap_passwd" echo "Building the LDAP config files ..." - sed 's|dc=example,dc=net|'"$2"'|g' install_utils/db.ldiff | sed 's|FILL_IT|'"$hashed_ldap_passwd"'|g' > /tmp/db - sed 's|dc=example,dc=net|'"$2"'|g' install_utils/schema.ldiff | sed 's|FILL_IT|'"$hashed_ldap_passwd"'|g' > /tmp/schema + sed 's|dc=example,dc=net|'"$domain"'|g' install_utils/db.ldiff | sed 's|FILL_IT|'"$hashed_ldap_passwd"'|g' > /tmp/db + sed 's|dc=example,dc=net|'"$domain"'|g' install_utils/schema.ldiff | sed 's|FILL_IT|'"$hashed_ldap_passwd"'|g' > /tmp/schema echo "Building the LDAP config files: Done" echo "Stopping slapd service ..."