浏览代码

Update homeassistant-install.sh

Debian 12 compatible 
fixes https://github.com/tteck/Proxmox/issues/1514
tteckster 2 年之前
父节点
当前提交
c335d39350
共有 1 个文件被更改,包括 11 次插入2 次删除
  1. 11 2
      install/homeassistant-install.sh

+ 11 - 2
install/homeassistant-install.sh

@@ -20,8 +20,17 @@ $STD apt-get install -y mc
 msg_ok "Installed Dependencies"
 
 msg_info "Installing runlike"
-$STD apt-get install -y python3-pip
-$STD pip3 install runlike
+$STD apt-get install -y \
+python3 \
+python3-dev \
+python3-pip \
+python3-venv
+if [[ "$PCT_OSVERSION" == "12" ]]; then
+  $STD apt-get install -y pipx
+  $STD pipx install runlike
+else
+  $STD pip3 install runlike
+fi
 msg_ok "Installed runlike"
 
 get_latest_release() {