-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathentrypoint.sh
26 lines (23 loc) · 1.29 KB
/
entrypoint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
cd /out
sed -i 's/YOUR_SENDER_EMAIL_ADDRESS_HERE/'"$From"'/g' appsettings.production.json
sed -i 's/YOUR_USERNAME_HERE/'"$UserName"'/g' appsettings.production.json
sed -i 's/YOUR_PASSWORD_HERE/'"$Password"'/g' appsettings.production.json
sed -i 's/YOUR_HOST_URL_HERE/'"$Host"'/g' appsettings.production.json
sed -i 's/YOUR_PORT_NUMBER_HERE/'"$Port"'/g' appsettings.production.json
sed -i 's/SET_SSL_TLS_Unsecured/'"$SetSmtpProtocol"'/g' appsettings.production.json
sed -i 's/YOUR_SENDGRID_API/'"$SendGridApiKey"'/g' appsettings.production.json
sed -i 's/YOUR_EXCEPTIONLESS_API_KEY/'"$ExceptionLessApiKey"'/g' appsettings.production.json
sed -i 's/PROMACT_OAUTH_URL/'"$PromactOAuthUrl"'/g' appsettings.production.json
sed -i 's/NUMBER_OF_SICK_LEAVE/'"$SickLeave"'/g' appsettings.production.json
sed -i 's/NUMBER_OF_CASUAL_LEAVE/'"$CasualLeave"'/g' appsettings.production.json
sed -i 's/PROMACT_ERP_URL/'"$PromactErpUrl"'/g' appsettings.production.json
sed -i 's/SECRET_API_RESOURCE/'"$ApiSecret"'/g' appsettings.production.json
jq '.ConnectionStrings.DefaultConnection |= "'"$ConnectionString"'" ' appsettings.json > appsettings.new.json
rm appsettings.json
cp appsettings.new.json appsettings.json
rm appsettings.new.json
cp NLog.config nlog.config
mkdir /public
cp -R ./wwwroot /public
/usr/bin/dotnet app.dll