|
|
@ -13,7 +13,35 @@ setting_up_container
|
|
|
|
network_check
|
|
|
|
network_check
|
|
|
|
update_os
|
|
|
|
update_os
|
|
|
|
|
|
|
|
|
|
|
|
msg_info "Installing Dependencies (Patience)"
|
|
|
|
if [[ "$PCT_OSVERSION" == "12" ]]; then
|
|
|
|
|
|
|
|
msg_info "Installing Dependencies, Bookworm (Patience)"
|
|
|
|
|
|
|
|
$STD apt-get install -y \
|
|
|
|
|
|
|
|
git \
|
|
|
|
|
|
|
|
curl \
|
|
|
|
|
|
|
|
sudo \
|
|
|
|
|
|
|
|
mc \
|
|
|
|
|
|
|
|
python3 \
|
|
|
|
|
|
|
|
python3-dev \
|
|
|
|
|
|
|
|
python3-venv \
|
|
|
|
|
|
|
|
python3-pip \
|
|
|
|
|
|
|
|
bluez \
|
|
|
|
|
|
|
|
libffi-dev \
|
|
|
|
|
|
|
|
libssl-dev \
|
|
|
|
|
|
|
|
libjpeg-dev \
|
|
|
|
|
|
|
|
zlib1g-dev \
|
|
|
|
|
|
|
|
autoconf \
|
|
|
|
|
|
|
|
build-essential \
|
|
|
|
|
|
|
|
libopenjp2-7 \
|
|
|
|
|
|
|
|
libturbojpeg0-dev \
|
|
|
|
|
|
|
|
tzdata \
|
|
|
|
|
|
|
|
ffmpeg \
|
|
|
|
|
|
|
|
liblapack3 \
|
|
|
|
|
|
|
|
liblapack-dev \
|
|
|
|
|
|
|
|
libatlas-base-dev
|
|
|
|
|
|
|
|
$STD systemctl disable systemd-networkd-wait-online.service
|
|
|
|
|
|
|
|
msg_ok "Installed Dependencies"
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
msg_info "Installing Dependencies, Bullseye (Patience)"
|
|
|
|
$STD apt-get install -y \
|
|
|
|
$STD apt-get install -y \
|
|
|
|
git \
|
|
|
|
git \
|
|
|
|
curl \
|
|
|
|
curl \
|
|
|
@ -60,6 +88,7 @@ msg_info "Installing Python 3.11.3 (Patience)"
|
|
|
|
$STD pyenv install 3.11.3
|
|
|
|
$STD pyenv install 3.11.3
|
|
|
|
pyenv global 3.11.3
|
|
|
|
pyenv global 3.11.3
|
|
|
|
msg_ok "Installed Python 3.11.3"
|
|
|
|
msg_ok "Installed Python 3.11.3"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
msg_info "Installing Home Assistant-Core"
|
|
|
|
msg_info "Installing Home Assistant-Core"
|
|
|
|
mkdir /srv/homeassistant
|
|
|
|
mkdir /srv/homeassistant
|
|
|
@ -68,8 +97,6 @@ python3 -m venv .
|
|
|
|
source bin/activate
|
|
|
|
source bin/activate
|
|
|
|
$STD pip install --upgrade pip
|
|
|
|
$STD pip install --upgrade pip
|
|
|
|
$STD python3 -m pip install wheel
|
|
|
|
$STD python3 -m pip install wheel
|
|
|
|
$STD pip install mysqlclient
|
|
|
|
|
|
|
|
$STD pip install psycopg2-binary
|
|
|
|
|
|
|
|
$STD pip install homeassistant
|
|
|
|
$STD pip install homeassistant
|
|
|
|
mkdir -p /root/.homeassistant
|
|
|
|
mkdir -p /root/.homeassistant
|
|
|
|
msg_ok "Installed Home Assistant-Core"
|
|
|
|
msg_ok "Installed Home Assistant-Core"
|
|
|
|