mirror of https://github.com/tteck/Proxmox.git
parent
e9b18f88a5
commit
12b51b866f
|
@ -13,8 +13,7 @@ setting_up_container
|
||||||
network_check
|
network_check
|
||||||
update_os
|
update_os
|
||||||
|
|
||||||
if [[ "$PCT_OSVERSION" == "12" ]]; then
|
msg_info "Installing Dependencies, (Patience)"
|
||||||
msg_info "Installing Dependencies, Bookworm (Patience)"
|
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y \
|
||||||
git \
|
git \
|
||||||
curl \
|
curl \
|
||||||
|
@ -33,49 +32,30 @@ if [[ "$PCT_OSVERSION" == "12" ]]; then
|
||||||
build-essential \
|
build-essential \
|
||||||
libopenjp2-7 \
|
libopenjp2-7 \
|
||||||
libturbojpeg0-dev \
|
libturbojpeg0-dev \
|
||||||
tzdata \
|
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
liblapack3 \
|
liblapack3 \
|
||||||
liblapack-dev \
|
liblapack-dev \
|
||||||
|
dbus-broker \
|
||||||
libpcap-dev \
|
libpcap-dev \
|
||||||
|
libmariadb-dev-compat \
|
||||||
libatlas-base-dev
|
libatlas-base-dev
|
||||||
msg_ok "Installed Dependencies"
|
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 \
|
$STD apt-get install -y \
|
||||||
git \
|
make \
|
||||||
curl \
|
|
||||||
sudo \
|
|
||||||
mc \
|
|
||||||
build-essential \
|
|
||||||
libssl-dev \
|
|
||||||
zlib1g-dev \
|
|
||||||
libbz2-dev \
|
|
||||||
libpcap-dev \
|
|
||||||
libreadline-dev \
|
libreadline-dev \
|
||||||
libsqlite3-dev \
|
libsqlite3-dev \
|
||||||
|
libncurses5-dev \
|
||||||
libncursesw5-dev \
|
libncursesw5-dev \
|
||||||
xz-utils \
|
xz-utils \
|
||||||
tk-dev \
|
tk-dev \
|
||||||
llvm \
|
llvm \
|
||||||
|
libbz2-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
libxmlsec1-dev \
|
libxmlsec1-dev \
|
||||||
libffi-dev \
|
liblzma-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"
|
|
||||||
$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
|
||||||
|
@ -83,6 +63,7 @@ else
|
||||||
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
|
||||||
|
@ -98,6 +79,8 @@ 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 homeassistant
|
$STD pip install homeassistant
|
||||||
|
$STD pip install mysqlclient
|
||||||
|
$STD pip install psycopg2-binary
|
||||||
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