mirror of
https://github.com/hassio-addons/addon-chrony.git
synced 2025-05-06 12:11:28 +00:00
15 lines
430 B
Text
15 lines
430 B
Text
#!/usr/bin/with-contenv bashio
|
|
# ==============================================================================
|
|
# Home Assistant Community Add-on: chrony
|
|
# Runs chrony daemon
|
|
# ==============================================================================
|
|
declare -a options
|
|
|
|
bashio::log.info "Starting chronyd..."
|
|
|
|
options+=(-d)
|
|
if bashio::config.false 'set_system_clock'; then
|
|
options+=(-x)
|
|
fi
|
|
|
|
exec chronyd "${options[@]}"
|