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

13 lines
367 B
Bash
Raw Normal View History

2021-06-14 21:48:31 +00:00
#! /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
2021-06-14 21:48:31 +00:00
crontab -l