]> git.nbdom.net Git - nb.git/commitdiff
etc/repos.conf
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 21 Dec 2017 04:43:01 +0000 (04:43 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 21 Dec 2017 04:43:01 +0000 (04:43 +0000)
etc/profile
etc/profile.d/functions
etc/profile.d/nb.sh
etc/repos.conf

index 2532e38b8aab09b4a77de5331f690ee55ae740f0..8eb8e457e9b744f13652d7d1842a508a3754d9b0 100755 (executable)
@@ -27,6 +27,7 @@ if [ -n "$NB_LOOP" ]; then
   echo "WARN: NB_LOOP=$NB_LOOP: BASH_SOURCE=$BASH_SOURCE \$0=$0 | Won't load !"
   NB_LOOP=$(($NB_LOOP+1))
   unset NB_LOOP
+  exit
   return 2>/dev/null || exit # if executable
 fi
 nb_debug "ENVS: BASH_SOURCE=$BASH_SOURCE \$0=$0"
@@ -108,8 +109,8 @@ else
     for i in \
       ${NB_ROOT}/etc/profile.d/envs \
       ${NB_ROOT}/etc/profile.d/aliases \
-      $(nb_repos_ls "etc/profile" "etc/profile.d/*.sh" | awk '$0 != "'${NB_ROOT}/etc/profile'"') \
-    ;do
+      $(nb_repos_ls "etc/profile" "etc/profile.d/*.sh" | awk '!/^\/etc\// && $0 != "'${NB_ROOT}/etc/profile'"') \
+    ; do
       nb_debug ". $i"
       [ -r "$i" -a -f "$i" ] && . "$i"
     done
index f6f9001cf94dda603baf82002a9a4444e298fcc3..d7d42d71cf76fdb662487f7ff1dd6695edaf2289 100644 (file)
@@ -40,6 +40,7 @@ nb_repos_ls() {
        local IFS="
 "
        for d in `nb_repos`; do
+               [ "$d" = "/" ] && d=""
 
                for f in "$@"; do
 
index f0e1e570d516843aba343a763fee9294198c90ff..fb7aee796d2c216aa77baa3a7d1cd98785a0dbd4 100644 (file)
@@ -1,4 +1,5 @@
 export NB_DB=nb
+#=SHELL_REPLACE sudo awk -F '}' '/CLEARTEXT/{print "export NB_AUTH=\"nb:"$2"\""}' /etc/ldap/nbdom.net/auth/nb.ldif
 export NB_AUTH="nb:0TXARcQUpjHZctoROA2X.weWSZKM5DGT"
 
 nb_repos_commit_push() {
index a529b63b2a5529fc7f4307e4361d505375009b3f..d823e1f3259a518674ccc270a92052211da347dd 100644 (file)
@@ -1,4 +1,5 @@
 # NB 13.12.16: Default
+/.nb-install
 /*/*/.nb-install
 /usr/local/src/*/.nb-install
 /home/*/*/.nb-install