mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Ensure minimal structure
This commit is contained in:
@@ -13,15 +13,15 @@ fi
|
|||||||
# SET SYSTEM #
|
# SET SYSTEM #
|
||||||
##############
|
##############
|
||||||
|
|
||||||
|
# Set password
|
||||||
bashio::log.info "Setting password for the user pi"
|
bashio::log.info "Setting password for the user pi"
|
||||||
if bashio::config.has_value "pi_password"; then
|
if bashio::config.has_value "pi_password"; then
|
||||||
echo "pi:$(bashio::config "pi_password")" | chpasswd
|
echo "pi:$(bashio::config "pi_password")" | chpasswd
|
||||||
fi
|
fi
|
||||||
bashio::log.info "Password set successfully for user pi."
|
bashio::log.info "Password set successfully for user pi."
|
||||||
|
|
||||||
bashio::log.info "Setting timezone :"
|
|
||||||
|
|
||||||
# Use timezone defined in add-on options if available
|
# Use timezone defined in add-on options if available
|
||||||
|
bashio::log.info "Setting timezone :"
|
||||||
if bashio::config.has_value 'TZ'; then
|
if bashio::config.has_value 'TZ'; then
|
||||||
TZ_VALUE="$(bashio::config 'TZ')"
|
TZ_VALUE="$(bashio::config 'TZ')"
|
||||||
if timedatectl set-timezone "$TZ_VALUE"; then
|
if timedatectl set-timezone "$TZ_VALUE"; then
|
||||||
@@ -49,6 +49,10 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Ensure minimal structure
|
||||||
|
mkdir -p "$HOME"/BirdSongs/StreamData
|
||||||
|
touch "$HOME"/BirdSongs/StreamData/analyzing_now.txt
|
||||||
|
|
||||||
bashio::log.info "Starting system services"
|
bashio::log.info "Starting system services"
|
||||||
|
|
||||||
bashio::log.info "Starting cron service"
|
bashio::log.info "Starting cron service"
|
||||||
|
|||||||
Reference in New Issue
Block a user