hassio-addon-rclone/rclone/rootfs/etc/cont-init.d/rclone.sh
ViViDboarder de4b02dae7 Fix protected file filter variable
The filter was only being set during schedule creation.
This meant that no new files created since scheduling the task
would be included. To avoid this, the rclone command is now
built when the task is run instead via a new script.
2023-11-13 13:52:24 -08:00

13 lines
367 B
Bash
Executable File

#! /usr/bin/with-contenv bashio
bashio::log.info "Configuring rclone..."
bashio::config.require.username 'credentials.username'
bashio::config.require.password 'credentials.password'
bashio::config.suggest.true 'tls.ssl'
bashio::config.require.ssl 'tls' 'tls.certfile' 'tls.keyfile'
echo "$(bashio::config 'cron') /run_rclone.sh" >> /etc/crontabs/root
crontab -l