hassio-addon-rclone/rclone/rootfs/etc/cont-init.d/timegaps.sh
2023-12-07 10:15:31 -08:00

11 lines
330 B
Bash
Executable File

#! /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
bashio::log.info "Configuring pruning with timegaps..."
echo "$TIMEGAPS_CRON /run_timegaps.sh" >> /etc/crontabs/root
crontab -l
fi