]> git.nbdom.net Git - nb.git/commitdiff
bin/nb-install
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 7 Dec 2017 06:17:01 +0000 (06:17 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 7 Dec 2017 06:17:01 +0000 (06:17 +0000)
bin/nb-install
bin/nb-update
etc/profile.d/ldap.sh

index a674f038441637097e781df405623742db278533..b4511ef8cbc040a5a2e3d2dbd6f1cafdac2e3ddc 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/env sh
 ##############################################################################
 #
 # Install - NB 18.11.14
index edde8b0f34b9dec85e0406d72a38511867d39c16..faf7a4e5842a44536fb18e150935d09b249432fb 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/env sh
 #####################################################################
 #
 # Pull update and run install script
index c506c15cee0c5192cab713a9339de4987ce63440..7035ae9dedb209666de30141c46d3a056bb8be2e 100644 (file)
@@ -91,8 +91,9 @@ ldap_gup() {
     -h|-help) echo $usage; return;;
   esac
 
+  eval '
   local args
-  slapcat_csv '(&(objectClass=posixGroup)(memberUid=*))' cn memberUid | while read -r -a rec; do
+  slapcat_csv "(&(objectClass=posixGroup)(memberUid=*))" cn memberUid | while read -r -a rec; do
 
     group=${rec[0]}
     rec=("${rec[@]:1}") # shift
@@ -108,6 +109,7 @@ ldap_gup() {
     done
 
   done
+  '
   return
 }