mirror of
https://github.com/tteck/Proxmox.git
synced 2026-07-05 21:52:50 +02:00
Update homeassistant-core-install.sh
This commit is contained in:
@@ -45,7 +45,9 @@ $STD apt-get install -y \
|
|||||||
libatlas-base-dev
|
libatlas-base-dev
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Installing Python3.12.1 (Patience, building from source)"
|
read -r -p "Would you like to build Python 3.12.1 (default 3.11.2)? <y/N> " prompt
|
||||||
|
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
|
||||||
|
msg_info "Installing Python 3.12.1 (Patience, building from source.)"
|
||||||
$STD apt-get remove -y python3
|
$STD apt-get remove -y python3
|
||||||
curl -sL https://www.python.org/ftp/python/3.12.1/Python-3.12.1.tar.xz | tar xJf -
|
curl -sL https://www.python.org/ftp/python/3.12.1/Python-3.12.1.tar.xz | tar xJf -
|
||||||
cd Python-3.12.1
|
cd Python-3.12.1
|
||||||
@@ -56,6 +58,14 @@ $STD update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/pytho
|
|||||||
cd ~
|
cd ~
|
||||||
rm -rf Python-3.12.1
|
rm -rf Python-3.12.1
|
||||||
msg_ok "Installed Python 3.12.1"
|
msg_ok "Installed Python 3.12.1"
|
||||||
|
else
|
||||||
|
msg_info "Updating Python3"
|
||||||
|
$STD apt-get install -y \
|
||||||
|
python3-dev \
|
||||||
|
python3-pip \
|
||||||
|
python3-venv
|
||||||
|
msg_ok "Updated Python3"
|
||||||
|
fi
|
||||||
|
|
||||||
msg_info "Installing Home Assistant-Core"
|
msg_info "Installing Home Assistant-Core"
|
||||||
mkdir /srv/homeassistant
|
mkdir /srv/homeassistant
|
||||||
|
|||||||
Reference in New Issue
Block a user