This commit is contained in:
Slaviša Arežina 2025-12-17 16:30:56 +01:00 committed by GitHub
parent 30056854c9
commit 21f7914294
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 10 deletions

View File

@ -41,7 +41,7 @@ function update_script() {
cp -R /opt/rdtc-backup/appsettings.json /opt/rdtc/ cp -R /opt/rdtc-backup/appsettings.json /opt/rdtc/
if dpkg-query -W dotnet-sdk-8.0 >/dev/null 2>&1; then if dpkg-query -W dotnet-sdk-8.0 >/dev/null 2>&1; then
$STD apt remove --purge -y dotnet-sdk-8.0 $STD apt remove --purge -y dotnet-sdk-8.0
$STD apt install -y dotnet-sdk-9.0 $STD apt install -y aspnetcore-runtime-9.0
fi fi
rm -rf /opt/rdtc-backup rm -rf /opt/rdtc-backup

View File

@ -13,20 +13,21 @@ setting_up_container
network_check network_check
update_os update_os
msg_info "Installing ASP.NET Core Runtime" msg_info "Installing Dependencies"
curl -fsSL "https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb" -o packages-microsoft-prod.deb setup_deb822_repo \
$STD dpkg -i packages-microsoft-prod.deb "microsoft" \
$STD apt update "https://packages.microsoft.com/keys/microsoft-2025.asc" \
$STD apt install -y dotnet-sdk-9.0 "https://packages.microsoft.com/debian/13/prod/" \
msg_ok "Installed ASP.NET Core Runtime" "trixie"
$STD apt install -y aspnetcore-runtime-9.0
msg_ok "Installed Dependencies"
fetch_and_deploy_gh_release "rdt-client" "rogerfar/rdt-client" "prebuild" "latest" "/opt/rdtc" "RealDebridClient.zip" fetch_and_deploy_gh_release "rdt-client" "rogerfar/rdt-client" "prebuild" "latest" "/opt/rdtc" "RealDebridClient.zip"
msg_info "Configuring rdtclient" msg_info "Setting up rdtclient"
cd /opt/rdtc cd /opt/rdtc
mkdir -p data/{db,downloads} mkdir -p data/{db,downloads}
sed -i 's#/data/db/#/opt/rdtc&#g' /opt/rdtc/appsettings.json sed -i 's#/data/db/#/opt/rdtc&#g' /opt/rdtc/appsettings.json
rm -f ~/packages-microsoft-prod.deb
msg_ok "Configured rdtclient" msg_ok "Configured rdtclient"
msg_info "Creating Service" msg_info "Creating Service"
@ -43,7 +44,7 @@ User=root
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
$STD systemctl enable -q --now rdtc systemctl enable -q --now rdtc
msg_ok "Created Service" msg_ok "Created Service"
motd_ssh motd_ssh