From cb4097e74c409d6b4b79608280d826c881c75242 Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 17 Aug 2023 10:53:23 -0400 Subject: [PATCH] integrate the `update` command --- install/esphome-install.sh | 2 ++ install/homeassistant-core-install.sh | 2 ++ install/homeassistant-install.sh | 2 ++ install/node-red-install.sh | 2 ++ install/omada-install.sh | 4 +++- install/zigbee2mqtt-install.sh | 2 ++ 6 files changed, 13 insertions(+), 1 deletion(-) diff --git a/install/esphome-install.sh b/install/esphome-install.sh index 7dbbbc18..5cb2cb59 100644 --- a/install/esphome-install.sh +++ b/install/esphome-install.sh @@ -35,6 +35,8 @@ msg_info "Installing ESPHome" #python3 -m venv . #source bin/activate $STD pip install esphome tornado esptool +echo "bash -c \"\$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/${app}.sh)\"" >/usr/bin/update +chmod +x /usr/bin/update msg_ok "Installed ESPHome" msg_info "Creating Service" diff --git a/install/homeassistant-core-install.sh b/install/homeassistant-core-install.sh index cbb10ed5..0c3a8cff 100644 --- a/install/homeassistant-core-install.sh +++ b/install/homeassistant-core-install.sh @@ -87,6 +87,8 @@ $STD pip install homeassistant $STD pip install mysqlclient $STD pip install psycopg2-binary mkdir -p /root/.homeassistant +echo "bash -c \"\$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/${app}.sh)\"" >/usr/bin/update +chmod +x /usr/bin/update msg_ok "Installed Home Assistant-Core" msg_info "Creating Service" diff --git a/install/homeassistant-install.sh b/install/homeassistant-install.sh index 0c19ca6c..5bfe63d2 100644 --- a/install/homeassistant-install.sh +++ b/install/homeassistant-install.sh @@ -88,6 +88,8 @@ $STD docker run -d \ --net=host \ ghcr.io/home-assistant/home-assistant:stable mkdir /root/hass_config +echo "bash -c \"\$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/${app}.sh)\"" >/usr/bin/update +chmod +x /usr/bin/update msg_ok "Installed Home Assistant $CORE_LATEST_VERSION" motd_ssh diff --git a/install/node-red-install.sh b/install/node-red-install.sh index 22909483..b9ca4fd3 100644 --- a/install/node-red-install.sh +++ b/install/node-red-install.sh @@ -38,6 +38,8 @@ echo "systemctl start nodered" >/usr/bin/node-red-start chmod +x /usr/bin/node-red-start echo "systemctl restart nodered" >/usr/bin/node-red-restart chmod +x /usr/bin/node-red-restart +echo "bash -c \"\$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/${app}.sh)\"" >/usr/bin/update +chmod +x /usr/bin/update msg_ok "Installed Node-Red" msg_info "Creating Service" diff --git a/install/omada-install.sh b/install/omada-install.sh index 03e2b418..f2f7a3e5 100644 --- a/install/omada-install.sh +++ b/install/omada-install.sh @@ -41,7 +41,9 @@ latest_version=$(basename "$latest_url" | sed -e 's/.*ller_//;s/_Li.*//') msg_info "Installing Omada Controller ${latest_version}" wget -qL ${latest_url} -$STD dpkg -i Omada_SDN_Controller_${latest_version}_Linux_x64.deb +$STD dpkg -i Omada_SDN_Controller_${latest_version}_Linux_x64.deb +echo "bash -c \"\$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/${app}.sh)\"" >/usr/bin/update +chmod +x /usr/bin/update msg_ok "Installed Omada Controller ${latest_version}" motd_ssh diff --git a/install/zigbee2mqtt-install.sh b/install/zigbee2mqtt-install.sh index eb10fdd6..151d028b 100644 --- a/install/zigbee2mqtt-install.sh +++ b/install/zigbee2mqtt-install.sh @@ -48,6 +48,8 @@ if [[ $DEV == "y" ]]; then $STD git checkout dev fi $STD npm ci +echo "bash -c \"\$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/${app}.sh)\"" >/usr/bin/update +chmod +x /usr/bin/update msg_ok "Installed Zigbee2MQTT" msg_info "Creating Service"