no external script

This commit is contained in:
montagneid
2026-05-08 14:43:25 +02:00
parent 6bec431d72
commit da5e5a30aa

View File

@@ -22,15 +22,27 @@ $STD apt-get install -y \
uuid-runtime \ uuid-runtime \
nginx \ nginx \
vsftpd vsftpd
msg_ok "Installed Dependencies"
msg_info "Installing .NET SDK 10.0 using Microsoft install script" msg_info "Installing .NET SDK 10.0"
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh # Get OS version info which adds the $ID and $VERSION_ID variables
chmod +x dotnet-install.sh source /etc/os-release
$STD ./dotnet-install.sh --channel 10.0 --install-dir /usr/share/dotnet
rm dotnet-install.sh # Download the Microsoft keys
ln -sf /usr/share/dotnet/dotnet /usr/bin/dotnet sudo apt-get install -y gpg wget
export DOTNET_ROOT=/usr/share/dotnet wget https://packages.microsoft.com/keys/microsoft.asc
export PATH=$PATH:$DOTNET_ROOT cat microsoft.asc | gpg --dearmor -o microsoft.asc.gpg
# Add the Microsoft repository to the system's sources list
wget https://packages.microsoft.com/config/$ID/$VERSION_ID/prod.list
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
# Move the key to the appropriate place
sudo mv microsoft.asc.gpg $(cat /etc/apt/sources.list.d/microsoft-prod.list | grep -oP "(?<=signed-by=).*(?=\])")
# Update packages and install .NET
sudo apt-get update && \
sudo apt-get install -y {dotnet-package}
msg_ok "Installed .NET SDK 10.0" msg_ok "Installed .NET SDK 10.0"
msg_info "Installing dotnet Umbraco templates and create project (Patience)" msg_info "Installing dotnet Umbraco templates and create project (Patience)"