From 6b33fdd9f5c93e9eff2157b8895887a74f63fbd6 Mon Sep 17 00:00:00 2001 From: Marco Cunha Date: Thu, 23 May 2024 12:54:34 +0100 Subject: [PATCH 1/2] Disable "running as root" warning in Jackett WebUI/Logs (#3043) Upstream checks if running under root and displays alert in both startup logs and WebUI. This environment variable disables that behavior. --- install/jackett-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install/jackett-install.sh b/install/jackett-install.sh index 36fcc7c07..6f3645aa3 100644 --- a/install/jackett-install.sh +++ b/install/jackett-install.sh @@ -39,6 +39,7 @@ Type=simple WorkingDirectory=/opt/Jackett ExecStart=/bin/sh /opt/Jackett/jackett_launcher.sh TimeoutStopSec=30 +Environment="DisableRootWarning=true" [Install] WantedBy=multi-user.target EOF From 326f9f500b84db11c45ee63b9626140c514b32b9 Mon Sep 17 00:00:00 2001 From: cvroque <65680394+cvroque@users.noreply.github.com> Date: Thu, 23 May 2024 11:53:56 -0300 Subject: [PATCH 2/2] Update zoraxy.sh (#3044) --- ct/zoraxy.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/ct/zoraxy.sh b/ct/zoraxy.sh index efcd250a9..1efc3331a 100644 --- a/ct/zoraxy.sh +++ b/ct/zoraxy.sh @@ -55,7 +55,19 @@ function default_settings() { function update_script() { header_info if [[ ! -d /opt/zoraxy/src ]]; then msg_error "No ${APP} Installation Found!"; exit; fi -msg_error "There is currently no update path available." +msg_info "Updating $APP" +systemctl stop zoraxy +cd /opt/zoraxy/src +if ! git pull; then + echo "Already up to date." + systemctl start zoraxy + echo "No update required." + exit +fi +go mod tidy +go build +systemctl start zoraxy +msg_ok "Updated $APP" exit }