hassio-addon-rclone/rclone/rootfs/etc/cont-init.d/timegaps.sh

11 lines
330 B
Bash
Raw Normal View History

#! /usr/bin/with-contenv bashio
TIMEGAPS_RULES=$(bashio::config 'prune.rules')
TIMEGAPS_CRON=$(bashio::config 'prune.cron')
if [ -n "$TIMEGAPS_RULES" ] && [ -n "$TIMEGAPS_CRON" ]; then
2023-12-07 17:47:12 +00:00
bashio::log.info "Configuring pruning with timegaps..."
echo "$TIMEGAPS_CRON /run_timegaps.sh" >> /etc/crontabs/root
crontab -l
fi