baseline: OpenMU upstream b5a0961 (fresh source)
This commit is contained in:
13
dev.sh
Normal file
13
dev.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
function generate_certificates {
|
||||
docker run --rm --entrypoint "" \
|
||||
-v $PWD/certificates:/certificates \
|
||||
mcr.microsoft.com/dotnet/sdk:5.0 \
|
||||
sh -c "dotnet dev-certs https --clean && dotnet dev-certs https -ep /certificates/aspnetapp.pfx -p ${1}"
|
||||
|
||||
if [ $? == 0 ]; then
|
||||
export CERTIFICATE_PASSWORD=${1}
|
||||
echo "success"
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user