mirror of
https://github.com/napnap75/multiarch-docker-images.git
synced 2026-05-12 12:57:07 +02:00
Allow restic to be run from outside
This commit is contained in:
@@ -30,13 +30,9 @@ if [ -d /crontabs ] ; then
|
||||
for f in /crontabs/* ; do
|
||||
crontab -u $(basename $f) $f
|
||||
done
|
||||
else
|
||||
elif [[ "$BACKUP_CRONTAB" ]] ; then
|
||||
echo "# This crontab is generated by the entrypoint script, do not edit" > /tmp/crontab
|
||||
if [[ "$BACKUP_CRONTAB" ]] ; then
|
||||
echo -n "$BACKUP_CRONTAB" >> /tmp/crontab
|
||||
else
|
||||
echo -n "0 4 * * *" >> /tmp/crontab
|
||||
fi
|
||||
echo -n "$BACKUP_CRONTAB" >> /tmp/crontab
|
||||
if [[ "$HC_PING_KEY" ]] ; then
|
||||
echo -n " runitor -slug ${HOSTNAME}-restic-backup --" >> /tmp/crontab
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user