mirror of https://github.com/tteck/Proxmox.git
				
				
				
			Compare commits
	
		
			No commits in common. "92596e895583b475d1724ee5550bd01e6bc92693" and "754dec41fc960c46acc38faa38b4c97ea0a78044" have entirely different histories.
		
	
	
		
			92596e8955
			...
			754dec41fc
		
	
		| 
						 | 
				
			
			@ -353,16 +353,10 @@ header_info
 | 
			
		|||
 | 
			
		||||
function update_script() {
 | 
			
		||||
header_info
 | 
			
		||||
msg_info "Updating $APP"
 | 
			
		||||
systemctl stop sabnzbd.service
 | 
			
		||||
RELEASE=$(curl -s https://api.github.com/repos/sabnzbd/sabnzbd/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
 | 
			
		||||
tar zxvf <(curl -fsSL https://github.com/sabnzbd/sabnzbd/releases/download/$RELEASE/SABnzbd-${RELEASE}-src.tar.gz) &>/dev/null
 | 
			
		||||
\cp -r SABnzbd-${RELEASE}/* /opt/sabnzbd &>/dev/null
 | 
			
		||||
rm -rf SABnzbd-${RELEASE}
 | 
			
		||||
cd /opt/sabnzbd
 | 
			
		||||
python3 -m pip install -r requirements.txt &>/dev/null
 | 
			
		||||
systemctl start sabnzbd.service
 | 
			
		||||
msg_ok "Updated $APP"
 | 
			
		||||
msg_info "Updating $APP LXC"
 | 
			
		||||
apt-get update &>/dev/null
 | 
			
		||||
apt-get -y upgrade &>/dev/null
 | 
			
		||||
msg_ok "Updated $APP LXC"
 | 
			
		||||
exit
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -381,7 +375,7 @@ if ! command -v pveversion >/dev/null 2>&1 && [[ ! -d /opt/sabnzbd ]]; then
 | 
			
		|||
fi
 | 
			
		||||
 | 
			
		||||
if ! command -v pveversion >/dev/null 2>&1; then
 | 
			
		||||
  if ! (whiptail --title "${APP} LXC UPDATE" --yesno "This will update ${APP}.  Proceed?" 10 58); then
 | 
			
		||||
  if ! (whiptail --title "${APP} LXC UPDATE" --yesno "This will update ${APP} LXC.  Proceed?" 10 58); then
 | 
			
		||||
    clear
 | 
			
		||||
    echo -e "⚠  User exited script \n"
 | 
			
		||||
    exit
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue