mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-03 07:40:52 +02:00
Add Mode
This commit is contained in:
@@ -62,3 +62,14 @@ case "$FREQUENCY" in
|
|||||||
sed -i "1a export COLLECTOR_CRON_SCHEDULE=\"0 0 * * 0\"" /etc/cont-init.d/50-cron-config
|
sed -i "1a export COLLECTOR_CRON_SCHEDULE=\"0 0 * * 0\"" /etc/cont-init.d/50-cron-config
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
########
|
||||||
|
# MODE #
|
||||||
|
########
|
||||||
|
|
||||||
|
if [[ "$(bashio::config "Mode")" == Collector ]]; then
|
||||||
|
bashio::log.warning "Collector only mode. WebUI and Influxdb will be disabled"
|
||||||
|
rm -r /etc/services.d/influxdb
|
||||||
|
rm -r /etc/services.d/scrutiny
|
||||||
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user