mirror of
https://github.com/ViViDboarder/docker-duplicity-cron.git
synced 2024-11-15 01:16:28 +00:00
11 lines
236 B
Bash
11 lines
236 B
Bash
|
#! /bin/bash
|
||
|
|
||
|
ENV=/env
|
||
|
LOG=/cron.log
|
||
|
HEALTH_FILE=/unhealthy
|
||
|
|
||
|
test -f $ENV || echo NO_ENV=true > $ENV
|
||
|
|
||
|
# Execute command and write output to log
|
||
|
env `cat $ENV | xargs` $@ 2>> $LOG && rm -f $HEALTH_FILE || { touch $HEALTH_FILE; exit 1; }
|