From 3d5cedaaaa102833b988919550bf509a9869d2ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joa=CC=83o=20Cunha?= Date: Thu, 6 Jul 2023 15:15:28 +0100 Subject: [PATCH] addressing reviewer comments --- install/rdtclient-install.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/install/rdtclient-install.sh b/install/rdtclient-install.sh index 2a4d28b4..b50deea3 100644 --- a/install/rdtclient-install.sh +++ b/install/rdtclient-install.sh @@ -20,16 +20,20 @@ $STD apt-get install -y mc $STD apt-get install -y unzip msg_ok "Installed Dependencies" -msg_info "Installing rdtclient" -wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb +msg_info "Installing ASP.NET Core Runtime" +wget -q https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb dpkg -i packages-microsoft-prod.deb &>/dev/null rm packages-microsoft-prod.deb apt-get update &>/dev/null apt-get install -y dotnet-sdk-6.0 &>/dev/null +msg_ok "Installed ASP.NET Core Runtime" +msg_info "Installing rdtclient" wget -q https://github.com/rogerfar/rdt-client/releases/latest/download/RealDebridClient.zip unzip -qq RealDebridClient.zip -d /opt/rdtc mkdir -p /data/db/ # defaults for rdtclient mkdir -p /data/downloads # defaults for rdtclient +msg_info "Installed rdtclient" +msg_info "Creating Service" cat </etc/systemd/system/rdtc.service [Unit] Description=RdtClient Service @@ -45,9 +49,8 @@ User=root WantedBy=multi-user.target EOF $STD systemctl daemon-reload -$STD systemctl enable rdtc -$STD systemctl start rdtc -msg_ok "Installed rdtclient" +$STD systemctl enable -q --now rdtc +msg_ok "Created Service" motd_ssh customize