diff --git a/ct/sabnzbd.sh b/ct/sabnzbd.sh index 00a5343fd..391056d2e 100644 --- a/ct/sabnzbd.sh +++ b/ct/sabnzbd.sh @@ -31,8 +31,8 @@ function update_script() { if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then msg_info "Updating $APP to ${RELEASE}" systemctl stop sabnzbd.service - $STD tar zxvf <(curl -fsSL https://github.com/sabnzbd/sabnzbd/releases/download/$RELEASE/SABnzbd-${RELEASE}-src.tar.gz) - $STD \cp -r SABnzbd-${RELEASE}/* /opt/sabnzbd + tar zxvf <(curl -fsSL https://github.com/sabnzbd/sabnzbd/releases/download/$RELEASE/SABnzbd-${RELEASE}-src.tar.gz) + cp -rf SABnzbd-${RELEASE}/* /opt/sabnzbd rm -rf SABnzbd-${RELEASE} cd /opt/sabnzbd $STD python3 -m pip install -r requirements.txt