All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #69
12 lines
395 B
Bash
12 lines
395 B
Bash
export SSH_CONFIG_VERSION=v1
|
|
export ENTRYPOINT_VERSION=v17
|
|
export CRONJOB_VERSION=v2
|
|
|
|
run_cron () {
|
|
schedule="$(crontab -l | tr -s " " | cut -d ' ' -f-5)"
|
|
rm -f /tmp/backup.log
|
|
echo "* * * * * $(crontab -l | tr -s " " | cut -d ' ' -f6-)" | crontab -
|
|
while [ ! -f /tmp/backup.log ]; do sleep 1; done
|
|
echo "$schedule $(crontab -l | tr -s " " | cut -d ' ' -f6-)" | crontab -
|
|
}
|