2019-12-19 15:08:47 +01:00
|
|
|
#!/usr/bin/with-contenv bashio
|
|
|
|
# ==============================================================================
|
|
|
|
#
|
|
|
|
# Community Hass.io Add-ons: Example
|
|
|
|
#
|
|
|
|
# Example add-on for Hass.io.
|
|
|
|
# This add-on displays a random quote every X seconds.
|
|
|
|
#
|
|
|
|
# ==============================================================================
|
|
|
|
|
|
|
|
cd /opt/nextcloud_backup/
|
2021-01-05 10:36:44 +01:00
|
|
|
if bashio::config.exists 'log_level'; then
|
|
|
|
LOG_LEVEL=$(bashio::config 'log_level')
|
|
|
|
else
|
|
|
|
LOG_LEVEL='info'
|
|
|
|
fi
|
2022-02-14 13:01:20 +01:00
|
|
|
|
|
|
|
if bashio::config.exists 'create_backup_timeout'; then
|
|
|
|
CREATE_BACKUP_TIMEOUT=$(bashio::config 'create_backup_timeout')
|
|
|
|
else
|
|
|
|
CREATE_BACKUP_TIMEOUT='info'
|
|
|
|
fi
|
|
|
|
|
2022-05-01 14:13:21 +02:00
|
|
|
LOG_LEVEL=$LOG_LEVEL CREATE_BACKUP_TIMEOUT=$CREATE_BACKUP_TIMEOUT yarn start
|