diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-03-18 18:58:10 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-03-18 19:13:55 +0000 |
commit | 848d7423b4146ca03d45de2a27051d9667c5be18 (patch) | |
tree | 4f7d7271b8c8409314bca1fcc90ac221e5a05c66 /scripts/git-mirror.cron | |
parent | NSCA configs and backup script submits via nsca not direct (diff) | |
download | config-848d7423b4146ca03d45de2a27051d9667c5be18.tar.bz2 config-848d7423b4146ca03d45de2a27051d9667c5be18.tar.xz config-848d7423b4146ca03d45de2a27051d9667c5be18.zip |
Swap git mirroring script for crontab and makefile
Only does what's needed, more often, right user
Diffstat (limited to 'scripts/git-mirror.cron')
-rwxr-xr-x | scripts/git-mirror.cron | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/scripts/git-mirror.cron b/scripts/git-mirror.cron deleted file mode 100755 index 311180a..0000000 --- a/scripts/git-mirror.cron +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -[[ $(id -u) -eq 0 ]] && exec sudo -H -u randomdan $0 $@ - -find /var/git -maxdepth 2 -name config -type f | \ - xargs grep -F '[remote "github"]' -l | \ - xargs dirname | \ - while read d - do git -C $d push -q github --mirror || echo "Mirroring $d failed" - done |