mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-04-20 21:08:06 +00:00
Fix update error caused by externaly managed message (#3892)
This commit is contained in:
parent
4b275ae911
commit
e8e4748c96
@ -30,6 +30,7 @@ function update_script() {
|
|||||||
RELEASE=$(curl -fsSL https://api.github.com/repos/sabnzbd/sabnzbd/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
RELEASE=$(curl -fsSL https://api.github.com/repos/sabnzbd/sabnzbd/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
|
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
|
||||||
msg_info "Updating $APP to ${RELEASE}"
|
msg_info "Updating $APP to ${RELEASE}"
|
||||||
|
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
||||||
systemctl stop sabnzbd.service
|
systemctl stop sabnzbd.service
|
||||||
tar zxvf <(curl -fsSL https://github.com/sabnzbd/sabnzbd/releases/download/$RELEASE/SABnzbd-${RELEASE}-src.tar.gz)
|
tar zxvf <(curl -fsSL https://github.com/sabnzbd/sabnzbd/releases/download/$RELEASE/SABnzbd-${RELEASE}-src.tar.gz)
|
||||||
cp -rf SABnzbd-${RELEASE}/* /opt/sabnzbd
|
cp -rf SABnzbd-${RELEASE}/* /opt/sabnzbd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user