mirror of
https://github.com/ViViDboarder/docker-duplicity-cron.git
synced 2024-11-21 15:56:30 +00:00
12 lines
199 B
Bash
Executable File
12 lines
199 B
Bash
Executable File
#! /bin/bash
|
|
|
|
ENV=/env.sh
|
|
LOG=/cron.log
|
|
HEALTH_FILE=/unhealthy
|
|
|
|
touch $ENV
|
|
source $ENV
|
|
|
|
# Execute command and write output to log
|
|
$@ 2>> $LOG && rm -f $HEALTH_FILE || { touch $HEALTH_FILE; exit 1; }
|