]> git.nbdom.net Git - nb.git/commitdiff
delete nb_repo_dirs
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 19 Mar 2016 15:27:54 +0000 (15:27 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 19 Mar 2016 15:27:54 +0000 (15:27 +0000)
etc/profile.d/envs
etc/profile.d/functions

index b03fc08ae4240fa2945a04aaf1bc9413e1a2cace..bad939c5bc3b60d43a1027ed36f22afa52238004 100644 (file)
@@ -31,7 +31,7 @@ env_add_path &>/dev/null && PATH=`env_add_path "$PATH" \
        /usr/share/awstats/tools \
        /home/bin \
        /home/www/wp/bin \
-  $(nb_repo_dirs | xargs -n1 -IZ printf '%s\n%s\n' "Z/bin" "Z/sbin" 2>/dev/null)
+  $(nb-repo-dirs | xargs -n1 -IZ printf '%s\n%s\n' "Z/bin" "Z/sbin" 2>/dev/null)
 `
 export PATH
 
index 2b5977ca7a07bb18204bd01a8141da67c1a529e6..3891dfba3fd0b5c046528209690d6641a6d55fd2 100644 (file)
@@ -312,25 +312,6 @@ jpg2avi() {
   rm -f "$still"
 }
 
-nb_repo_dirs() {
-  if [ -e $NB_ROOT/bin/nb-repo-dirs ]; then
-    $NB_ROOT/bin/nb-repo-dirs
-    return
-  fi
-  (
-    ls -d \
-      $NB_ROOT \
-      /opt/backup_servers \
-      /{opt,home/www}/rent \
-      root:/etc/puppet \
-      /etc/puppet/data \
-      /etc/puppet/modules \
-      /home/www/izideal \
-    2>/dev/null
-    (ls /{opt,home,home/www}/*/.nb-install | xargs -n1 dirname) 2>/dev/null
-  ) | perl -ne '/^\s*$/ and next; s/^\s+//; print unless $h{$_}++'
-}
-
 cron_d_install() {
   declare usage fname file exp cron tmp test
   usage="Usage: $FUNCNAME [-t|--test] [CRON_D_FILE] [IGNORE_REGEXP] or [NAME] [CRON_D_CONTENT] [IGNORE_REGEXP]"