diff --git a/ct/zoraxy.sh b/ct/zoraxy.sh index db058120f..2ce1ebb0c 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 } diff --git a/install/jackett-install.sh b/install/jackett-install.sh index 1c9470a25..ddccecdb5 100644 --- a/install/jackett-install.sh +++ b/install/jackett-install.sh @@ -40,6 +40,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