1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 16:12:49 -05:00

more pulling

This commit is contained in:
Kyle Spearrin
2017-08-26 22:54:10 -04:00
parent 189240c81f
commit 43199e9a44
4 changed files with 10 additions and 0 deletions

View File

@ -35,18 +35,21 @@ function Docker-Prune {
function Update-Lets-Encrypt {
if(Test-Path -Path "${outputDir}\letsencrypt\live") {
docker pull certbot/certbot
docker run -it --rm --name certbot -p 443:443 -p 80:80 -v $outputDir/letsencrypt:/etc/letsencrypt/ certbot/certbot `
renew --logs-dir /etc/letsencrypt/logs
}
}
function Update-Database {
docker pull bitwarden/setup
docker run -it --rm --name setup --network container:mssql -v ${outputDir}:/bitwarden bitwarden/setup `
dotnet Setup.dll -update 1 -db 1
echo "Database update complete"
}
function Print-Environment {
docker pull bitwarden/setup
docker run -it --rm --name setup -v ${outputDir}:/bitwarden bitwarden/setup `
dotnet Setup.dll -printenv 1 -env win
}