dip

old school recipes for janitorial snafu.
git clone git://git.ricketyspace.net/dip.git
Log | Files | Refs

commit b5d8bd81c98a7ebd9cd095421507e0466c68f2d4
parent 23bb7e54787041c5365d921ff419759dad988398
Author: rsiddharth <s@ricketyspace.net>
Date:   Fri, 25 May 2018 04:05:58 +0000

etc: cron.d: Add annex-to-ardisol.

Diffstat:
etc/cron.d/annex-to-ardisol | 4++++
usr/local/bin/annex-to-ardisol-cronjob | 3+++
2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/etc/cron.d/annex-to-ardisol b/etc/cron.d/annex-to-ardisol @@ -0,0 +1,4 @@ +SHELL=/bin/sh +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin + +45 03 * * * s chronic '/usr/local/bin/annex-to-ardisol-cronjob' diff --git a/usr/local/bin/annex-to-ardisol-cronjob b/usr/local/bin/annex-to-ardisol-cronjob @@ -0,0 +1,3 @@ +#!/bin/sh +set -e +flock -n '/etc/cron.d/annex-to-ardisol' sh -c '( annex-to /media/ardisol/annex . )'