From e45aa5e42a98ecbc3c75bd034376fa2337113ab1 Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 5 Oct 2023 15:36:19 -0400 Subject: [PATCH] Update install.func - globally add 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 | 2 -- install/pingvin-install.sh | 2 -- install/zigbee2mqtt-install.sh | 2 -- misc/install.func | 2 ++ 8 files changed, 2 insertions(+), 14 deletions(-) diff --git a/install/esphome-install.sh b/install/esphome-install.sh index 5cb2cb59..7dbbbc18 100644 --- a/install/esphome-install.sh +++ b/install/esphome-install.sh @@ -35,8 +35,6 @@ 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 0c3a8cff..cbb10ed5 100644 --- a/install/homeassistant-core-install.sh +++ b/install/homeassistant-core-install.sh @@ -87,8 +87,6 @@ $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 5bfe63d2..0c19ca6c 100644 --- a/install/homeassistant-install.sh +++ b/install/homeassistant-install.sh @@ -88,8 +88,6 @@ $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 94271b41..dc1f8759 100644 --- a/install/node-red-install.sh +++ b/install/node-red-install.sh @@ -43,8 +43,6 @@ 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 f2f7a3e5..79a35359 100644 --- a/install/omada-install.sh +++ b/install/omada-install.sh @@ -42,8 +42,6 @@ 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 -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/pingvin-install.sh b/install/pingvin-install.sh index 6131e534..b8d31fb2 100644 --- a/install/pingvin-install.sh +++ b/install/pingvin-install.sh @@ -47,8 +47,6 @@ $STD npm install $STD npm run build $STD pm2 start --name="pingvin-share-frontend" npm -- run start $STD pm2 startup -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 Pingvin Share" motd_ssh diff --git a/install/zigbee2mqtt-install.sh b/install/zigbee2mqtt-install.sh index 1e8b5089..dc52ffa0 100644 --- a/install/zigbee2mqtt-install.sh +++ b/install/zigbee2mqtt-install.sh @@ -53,8 +53,6 @@ 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" diff --git a/misc/install.func b/misc/install.func index 24fd8533..a15364c2 100644 --- a/misc/install.func +++ b/misc/install.func @@ -143,4 +143,6 @@ EOF systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//') msg_ok "Customized Container" fi + echo "bash -c \"\$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/${app}.sh)\"" >/usr/bin/update + chmod +x /usr/bin/update }