Update homeassistant-core-install.sh

cleanup
This commit is contained in:
tteckster 2023-06-18 17:39:04 -04:00 committed by GitHub
parent e9b18f88a5
commit 12b51b866f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 30 deletions

View File

@ -13,8 +13,7 @@ setting_up_container
network_check
update_os
if [[ "$PCT_OSVERSION" == "12" ]]; then
msg_info "Installing Dependencies, Bookworm (Patience)"
msg_info "Installing Dependencies, (Patience)"
$STD apt-get install -y \
git \
curl \
@ -33,49 +32,30 @@ if [[ "$PCT_OSVERSION" == "12" ]]; then
build-essential \
libopenjp2-7 \
libturbojpeg0-dev \
tzdata \
ffmpeg \
liblapack3 \
liblapack-dev \
dbus-broker \
libpcap-dev \
libmariadb-dev-compat \
libatlas-base-dev
msg_ok "Installed Dependencies"
else
msg_info "Installing Dependencies, Bullseye (Patience)"
if [[ "$PCT_OSVERSION" == "11" ]]; then
msg_info "Installing pyenv"
$STD apt-get install -y \
git \
curl \
sudo \
mc \
build-essential \
libssl-dev \
zlib1g-dev \
libbz2-dev \
libpcap-dev \
make \
libreadline-dev \
libsqlite3-dev \
libncurses5-dev \
libncursesw5-dev \
xz-utils \
tk-dev \
llvm \
libbz2-dev \
libxml2-dev \
libxmlsec1-dev \
libffi-dev \
liblzma-dev \
dbus-broker \
bluez \
libmariadb-dev-compat \
libjpeg-dev \
autoconf \
libopenjp2-7 \
libtiff5 \
libturbojpeg0-dev \
liblapack3 \
liblapack-dev \
libatlas-base-dev
msg_ok "Installed Dependencies"
msg_info "Installing pyenv"
liblzma-dev
$STD git clone https://github.com/pyenv/pyenv.git ~/.pyenv
set +e
echo 'export PYENV_ROOT="$HOME/.pyenv"' >>~/.bashrc
@ -83,6 +63,7 @@ else
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init --path)"\nfi' >>~/.bashrc
msg_ok "Installed pyenv"
. ~/.bashrc
set -e
msg_info "Installing Python 3.11.3 (Patience)"
$STD pyenv install 3.11.3
@ -98,6 +79,8 @@ source bin/activate
$STD pip install --upgrade pip
$STD python3 -m pip install wheel
$STD pip install homeassistant
$STD pip install mysqlclient
$STD pip install psycopg2-binary
mkdir -p /root/.homeassistant
msg_ok "Installed Home Assistant-Core"