Skip to content

Commit

Permalink
Update rdtclient.sh / Remove Dotnet 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MickLesk authored Nov 21, 2024
1 parent 0d954e3 commit fa202b4
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions ct/rdtclient.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,33 @@ function default_settings() {

function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -d /opt/rdtc/ ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
msg_info "Updating $APP"
msg_info "Stopping ${APP}"
systemctl stop rdtc
msg_ok "Stopped ${APP}"

msg_info "Updating ${APP}"
if dpkg-query -W dotnet-sdk-8.0 >/dev/null 2>&1; then
apt-get remove --purge -y dotnet-sdk-8.0 &>/dev/null
apt-get install -y dotnet-sdk-9.0 &>/dev/null
fi
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
msg_ok "Updated ${APP}"

msg_info "Starting ${APP}"
systemctl start rdtc
msg_ok "Updated $APP"
msg_ok "Started ${APP}"

msg_info "Cleaning Up"
rm -rf rdtc-backup RealDebridClient.zip
msg_ok "Cleaned"
msg_ok "Updated Successfully"
exit
}

Expand Down

0 comments on commit fa202b4

Please sign in to comment.