]> git.nbdom.net Git - nb.git/commitdiff
etc/cron/nb
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 8 Mar 2019 18:26:14 +0000 (18:26 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 8 Mar 2019 18:26:14 +0000 (18:26 +0000)
bin/nb-repos-run-parts
etc/cron/nb

index abac972250ec0073ff0b7ac4b1115c447a76a5df..994c0784d25cf18171fd2057ab3ae6390daf4a9a 100755 (executable)
@@ -8,9 +8,10 @@ DIR=${1:?Missing DIR}
 
 nb_repos | while read repo; do
        [ -d "$repo/$DIR" ] || continue
-       echo "$repo/$DIR"
+       #echo "$repo/$DIR"
        user=`ls -dl "$repo/$DIR" | awk '{print $3}'`
        cmd="cd \"$repo\""
+
        cmd="$cmd && ls -lhd \"$repo/$DIR\" && whoami"
        #cmd="$cmd && run-parts --report \"$repo/$DIR\""
 
index 647926b572c0886111fb903046e524b2659e680c..eadaa73de3754e6c09c13e77c238b1b1c0d6b11e 100644 (file)
@@ -12,10 +12,10 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 0       00 * * * root . /etc/profile && nb-update -cleanup >/var/log/nb.log 2>&1 | true
 0    01-08 * * * root . /etc/profile && nb-update >/var/log/nb.log 2>&1 | true
 
-# NB 08.03.19 25 5     * * *   root    which run-parts &> /dev/null && . /etc/profile && cd / && nb_repos_ls etc/cron.daily | while read i; do run-parts --report "$i"; done
-# NB 08.03.19 47 4  * * 7      root    which run-parts &> /dev/null && . /etc/profile && cd / && nb_repos_ls etc/cron.weekly | while read i; do run-parts --report "$i"; done
-# NB 08.03.19 52 3  1 * *      root    which run-parts &> /dev/null && . /etc/profile && cd / && nb_repos_ls etc/cron.monthly | while read i; do run-parts --report "$i"; done
-# NB 08.03.19 52 1  1 * *      root    which run-parts &> /dev/null && . /etc/profile && cd / && nb_repos_ls etc/cron.yearly | while read i; do run-parts --report "$i"; done
+# NB 08.03.19 25 5     * * *   root    which run-parts &> /dev/null && . /etc/profile && nb-repos-run-parts etc/cron.daily
+# NB 08.03.19 47 4  * * 7      root    which run-parts &> /dev/null && . /etc/profile && nb-repos-run-parts etc/cron.weekly
+# NB 08.03.19 52 3  1 * *      root    which run-parts &> /dev/null && . /etc/profile && nb-repos-run-parts etc/cron.monthly
+# NB 08.03.19 52 1  1 * *      root    which run-parts &> /dev/null && . /etc/profile && nb-repos-run-parts etc/cron.yearly
 # NB 08.03.19 
 25 5   * * *   root    which run-parts &> /dev/null && . /etc/profile && [ -d "$NB_ROOT" -a -d "$NB_ROOT/etc/cron.daily" ] && cd / && run-parts --report $NB_ROOT/etc/cron.daily
 47 4   * * 7   root    which run-parts &> /dev/null && . /etc/profile && [ -d "$NB_ROOT" -a -d "$NB_ROOT/etc/cron.weekly" ] && cd / && run-parts --report $NB_ROOT/etc/cron.weekly