From 8d0a731090b034b98a1d5f0d0da983a1136ba011 Mon Sep 17 00:00:00 2001
From: tteckster <tteckster@gmail.com>
Date: Wed, 24 May 2023 05:29:58 -0400
Subject: [PATCH] Update go2rtc.sh

create app update
---
 ct/go2rtc.sh | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/ct/go2rtc.sh b/ct/go2rtc.sh
index ba243dc3..982a03b3 100644
--- a/ct/go2rtc.sh
+++ b/ct/go2rtc.sh
@@ -53,11 +53,13 @@ function default_settings() {
 
 function update_script() {
 header_info
-if [[ ! -d /var ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
-msg_info "Updating $APP LXC"
-apt-get update &>/dev/null
-apt-get -y upgrade &>/dev/null
-msg_ok "Updated $APP LXC"
+if [[ ! -d /opt/go2rtc ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
+msg_info "Updating $APP"
+cd /opt/go2rtc
+rm go2rtc_linux_amd64
+wget -q https://github.com/AlexxIT/go2rtc/releases/latest/download/go2rtc_linux_amd64
+chmod +x go2rtc_linux_amd64
+msg_ok "Updated $APP"
 exit
 }