mirror of https://github.com/tteck/Proxmox.git
				
				
				
			
							parent
							
								
									8e9ea1bd3c
								
							
						
					
					
						commit
						2e5bcd8424
					
				| 
						 | 
					@ -53,10 +53,16 @@ function default_settings() {
 | 
				
			||||||
function update_script() {
 | 
					function update_script() {
 | 
				
			||||||
header_info
 | 
					header_info
 | 
				
			||||||
if [[ ! -d /opt/rdtc/ ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
 | 
					if [[ ! -d /opt/rdtc/ ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
 | 
				
			||||||
msg_info "Updating $APP LXC"
 | 
					msg_info "Updating $APP"
 | 
				
			||||||
apt-get update &>/dev/null
 | 
					systemctl stop rdtc
 | 
				
			||||||
apt-get -y upgrade &>/dev/null
 | 
					mkdir -p rdtc-backup
 | 
				
			||||||
msg_ok "Updated $APP LXC"
 | 
					cp -R /opt/rdtc/appsettings.json rdtc-backup/
 | 
				
			||||||
 | 
					wget -q https://github.com/rogerfar/rdt-client/releases/latest/download/RealDebridClient.zip
 | 
				
			||||||
 | 
					unzip -oqq RealDebridClient.zip -d /opt/rdtc
 | 
				
			||||||
 | 
					cp -R rdtc-backup/appsettings.json /opt/rdtc/
 | 
				
			||||||
 | 
					rm -rf rdtc-backup RealDebridClient.zip
 | 
				
			||||||
 | 
					systemctl start rdtc
 | 
				
			||||||
 | 
					msg_ok "Updated $APP"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue