From bccd8da3eb8f745050276dcd83fc58c07036cd20 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Wed, 22 Jan 2025 23:19:36 +0800 Subject: [PATCH] chore(Deploy): update deploy script (#5181) --- scripts/linux/deploy.sh | 37 +++++++++++++++++++++++++------------ 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/scripts/linux/deploy.sh b/scripts/linux/deploy.sh index f80c09776..825a0ba44 100644 --- a/scripts/linux/deploy.sh +++ b/scripts/linux/deploy.sh @@ -1,37 +1,50 @@ #! /bin/bash -echo "clean env" - +echo "*********************** clean env ***********************" sudo rm -fr BootstrapBlazor - sudo rm -fr /usr/local/ba/blazor -echo "apt update" +echo "*********************** apt update ***********************" sudo apt update -echo "install git" +echo "*********************** install git ***********************" echo yes|sudo apt install git -echo "install BootstrapBlazor" +echo "*********************** install BootstrapBlazor ***********************" sudo git clone https://gitee.com/LongbowEnterprise/BootstrapBlazor.git -echo "make directory BA/Blazor" +echo "*********************** make directory BA/Blazor ***********************" sudo mkdir /usr/local/ba sudo mkdir /usr/local/ba/blazor -echo "copy scripts" +echo "*********************** copy scripts ***********************" sudo cp BootstrapBlazor/scripts/linux/deploy-blazor.sh deploy-blazor.sh sudo cp BootstrapBlazor/scripts/linux/ba.blazor.service /usr/lib/systemd/system/ba.blazor.service -echo "install ba.blazor.service" +echo "*********************** install ba.blazor.service ***********************" sudo systemctl enable ba.blazor -echo "install nginx" +echo "*********************** install nginx ***********************" echo yes|sudo apt install nginx -echo "copy nginx config" +echo "*********************** copy nginx config ***********************" sudo cp BootstrapBlazor/scripts/linux/nginx.conf /etc/nginx/ -echo "copy cert" +echo "*********************** copy cert ***********************" sudo mkdir /etc/nginx/cert sudo cp BootstrapBlazor/scripts/linux/cert/* /etc/nginx/cert/ + +echo "*********************** install chrome ***********************" +wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb +sudo apt install ./google-chrome-stable_current_amd64.deb + +echo "*********************** install support font ***********************" +sudo apt install fonts-wqy-microhei + +echo "*********************** install DOTNET ***********************" +wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb +sudo dpkg -i packages-microsoft-prod.deb +rm packages-microsoft-prod.deb + +sudo apt-get update && \ + sudo apt-get install -y dotnet-sdk-9.0