mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-26 08:33:17 +01:00
Update homeassistant-core-install.sh
add bookworm
This commit is contained in:
parent
61118ab83b
commit
e80dbb4aad
@ -5,7 +5,7 @@
|
|||||||
# License: MIT
|
# License: MIT
|
||||||
# https://github.com/tteck/Proxmox/raw/main/LICENSE
|
# https://github.com/tteck/Proxmox/raw/main/LICENSE
|
||||||
|
|
||||||
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||||
color
|
color
|
||||||
verb_ip6
|
verb_ip6
|
||||||
catch_errors
|
catch_errors
|
||||||
@ -13,53 +13,82 @@ setting_up_container
|
|||||||
network_check
|
network_check
|
||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies (Patience)"
|
if [[ "$PCT_OSVERSION" == "12" ]]; then
|
||||||
$STD apt-get install -y \
|
msg_info "Installing Dependencies, Bookworm (Patience)"
|
||||||
git \
|
$STD apt-get install -y \
|
||||||
curl \
|
git \
|
||||||
sudo \
|
curl \
|
||||||
mc \
|
sudo \
|
||||||
build-essential \
|
mc \
|
||||||
libssl-dev \
|
python3 \
|
||||||
zlib1g-dev \
|
python3-dev \
|
||||||
libbz2-dev \
|
python3-venv \
|
||||||
libpcap-dev \
|
python3-pip \
|
||||||
libreadline-dev \
|
bluez \
|
||||||
libsqlite3-dev \
|
libffi-dev \
|
||||||
libncursesw5-dev \
|
libssl-dev \
|
||||||
xz-utils \
|
libjpeg-dev \
|
||||||
tk-dev \
|
zlib1g-dev \
|
||||||
llvm \
|
autoconf \
|
||||||
libxml2-dev \
|
build-essential \
|
||||||
libxmlsec1-dev \
|
libopenjp2-7 \
|
||||||
libffi-dev \
|
libturbojpeg0-dev \
|
||||||
liblzma-dev \
|
tzdata \
|
||||||
dbus-broker \
|
ffmpeg \
|
||||||
bluez \
|
liblapack3 \
|
||||||
libmariadb-dev-compat \
|
liblapack-dev \
|
||||||
libjpeg-dev \
|
libatlas-base-dev
|
||||||
autoconf \
|
$STD systemctl disable systemd-networkd-wait-online.service
|
||||||
libopenjp2-7 \
|
msg_ok "Installed Dependencies"
|
||||||
libtiff5 \
|
else
|
||||||
libturbojpeg0-dev \
|
msg_info "Installing Dependencies, Bullseye (Patience)"
|
||||||
liblapack3 \
|
$STD apt-get install -y \
|
||||||
liblapack-dev \
|
git \
|
||||||
libatlas-base-dev
|
curl \
|
||||||
msg_ok "Installed Dependencies"
|
sudo \
|
||||||
|
mc \
|
||||||
|
build-essential \
|
||||||
|
libssl-dev \
|
||||||
|
zlib1g-dev \
|
||||||
|
libbz2-dev \
|
||||||
|
libpcap-dev \
|
||||||
|
libreadline-dev \
|
||||||
|
libsqlite3-dev \
|
||||||
|
libncursesw5-dev \
|
||||||
|
xz-utils \
|
||||||
|
tk-dev \
|
||||||
|
llvm \
|
||||||
|
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"
|
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
|
||||||
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
|
echo 'export PYENV_ROOT="$HOME/.pyenv"' >>~/.bashrc
|
||||||
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
|
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >>~/.bashrc
|
||||||
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init --path)"\nfi' >> ~/.bashrc
|
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init --path)"\nfi' >>~/.bashrc
|
||||||
msg_ok "Installed pyenv"
|
msg_ok "Installed pyenv"
|
||||||
. ~/.bashrc
|
. ~/.bashrc
|
||||||
set -e
|
set -e
|
||||||
msg_info "Installing Python 3.11.3 (Patience)"
|
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user