From 2e5bcd8424e3e02a4c1f33bfcea6b4d6ccf4c40e Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 21 Nov 2023 16:55:09 -0500 Subject: [PATCH] Update rdtclient.sh create update path --- ct/rdtclient.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/ct/rdtclient.sh b/ct/rdtclient.sh index 227856d6..e87c21f4 100755 --- a/ct/rdtclient.sh +++ b/ct/rdtclient.sh @@ -53,10 +53,16 @@ function default_settings() { function update_script() { header_info if [[ ! -d /opt/rdtc/ ]]; then msg_error "No ${APP} Installation Found!"; exit; fi -msg_info "Updating $APP LXC" -apt-get update &>/dev/null -apt-get -y upgrade &>/dev/null -msg_ok "Updated $APP LXC" +msg_info "Updating $APP" +systemctl stop rdtc +mkdir -p rdtc-backup +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 }