Update homeassistant-core-install.sh

code refactoring
This commit is contained in:
tteckster 2023-05-29 16:47:56 -04:00 committed by GitHub
parent 69bdd64193
commit a68786a63b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 24 deletions

View File

@ -15,46 +15,36 @@ update_os
msg_info "Installing Dependencies (Patience)" msg_info "Installing Dependencies (Patience)"
$STD apt-get install -y \ $STD apt-get install -y \
make \ git \
curl \
sudo \
mc \
build-essential \ build-essential \
libjpeg-dev \
libpcap-dev \
libssl-dev \ libssl-dev \
zlib1g-dev \ zlib1g-dev \
libbz2-dev \ libbz2-dev \
libreadline-dev \ libreadline-dev \
libsqlite3-dev \ libsqlite3-dev \
libmariadb-dev-compat \
autoconf \
git \
curl \
sudo \
mc \
llvm \
libncursesw5-dev \ libncursesw5-dev \
xz-utils \ xz-utils \
tzdata \
bluez \
tk-dev \ tk-dev \
llvm \
libxml2-dev \ libxml2-dev \
libxmlsec1-dev \ libxmlsec1-dev \
libffi-dev \ libffi-dev \
liblzma-dev \
bluez \
libmariadb-dev-compat \
libjpeg-dev \
autoconf \
libopenjp2-7 \ libopenjp2-7 \
libtiff5 \ libtiff5 \
libturbojpeg0-dev \ libturbojpeg0-dev \
liblzma-dev liblapack3 \
liblapack-dev \
libatlas-base-dev
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Linux D-Bus Message Broker"
cat <<EOF >>/etc/apt/sources.list
deb http://deb.debian.org/debian bullseye-backports main contrib non-free
deb-src http://deb.debian.org/debian bullseye-backports main contrib non-free
EOF
$STD apt-get update
$STD apt-get -t bullseye-backports install -y dbus-broker
$STD systemctl enable --now dbus-broker.service
msg_ok "Installed Linux D-Bus Message Broker"
msg_info "Installing pyenv" msg_info "Installing pyenv"
$STD git clone https://github.com/pyenv/pyenv.git ~/.pyenv $STD git clone https://github.com/pyenv/pyenv.git ~/.pyenv
set +e set +e
@ -64,7 +54,7 @@ echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init --path)
msg_ok "Installed pyenv" msg_ok "Installed pyenv"
. ~/.bashrc . ~/.bashrc
set -e set -e
msg_info "Installing Python 3.11.2" msg_info "Installing Python 3.11.2 (Patience)"
$STD pyenv install 3.11.2 $STD pyenv install 3.11.2
pyenv global 3.11.2 pyenv global 3.11.2
msg_ok "Installed Python 3.11.2" msg_ok "Installed Python 3.11.2"