]> git.nbdom.net Git - nb.git/commitdiff
nb-update, nb-install, repos
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 17 Jan 2016 01:54:03 +0000 (01:54 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 17 Jan 2016 01:54:03 +0000 (01:54 +0000)
bin/nb-repo-dirs
bin/nb-update
etc/profile.d/functions

index 55d804c6d52bb72d108f505aaec3b7a04f678223..51a65e94d39bb0385876fac1185aac13ec0886e5 100755 (executable)
@@ -13,9 +13,6 @@ my @DIRS = (
        '/opt/backup_servers',
        '/{opt,home/www}/rent',
        '/etc/puppet',
-       '/etc/zaza',
-       '/etc/puppet/data',
-       '/etc/puppet/modules',
        '/home/www/izideal',
 #      '/opt/*/.nb-install',
 #      '/home/*/.nb-install',
@@ -39,6 +36,7 @@ print
        grep {$_ ne "" and !$h{$_}++}
        map {
 
+# TODEL user - NB 17.01.16
                my $user = (s/^(\w+:)// ? $1 : "");
                my $dir = /\.nb-install$/ ? dirname($_) : $_;
 
index 886c1c347bcbab82c0a8d83150867e3d69cbf78d..68ac294c261c50026a088642f96ed405aa8c115c 100755 (executable)
@@ -21,7 +21,7 @@ export GIT_SSH="$TMP"
 
 for repo in $(nb_repo_dirs); do
 
-  # Check dir
+# NB 17.01.16   # Check dir
   [ -d "$repo/.git" ] || continue
   cd "$repo" || continue
 
index 531bdf9048f547d9f42b27b24a1ad303ba217859..a54346fd39beeb6f9b16a61a97574f49bd987fe5 100644 (file)
@@ -319,6 +319,10 @@ jpg2avi() {
 }
 
 nb_repo_dirs() {
+  if [ -e $NB_ROOT/nb-repo-dirs ]; then
+    $NB_ROOT/nb-repo-dirs
+    return
+  fi
   (
     ls -d \
       $NB_ROOT \