mirror of
https://github.com/ViViDboarder/hassio-addon-rclone.git
synced 2024-11-15 09:46:36 +00:00
11 lines
330 B
Bash
Executable File
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
|