1
0
mirror of https://github.com/bitwarden/server synced 2025-12-06 00:03:34 +00: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

@@ -44,18 +44,21 @@ function dockerPrune() {
function updateLetsEncrypt() {
if [ -d "${outputDir}/letsencrypt/live" ]
then
docker pull certbot/certbot
docker run -it --rm --name certbot -p 443:443 -p 80:80 -v $OUTPUT_DIR/letsencrypt:/etc/letsencrypt/ certbot/certbot \
renew --logs-dir /etc/letsencrypt/logs
fi
}
function updateDatabase() {
docker pull bitwarden/setup
docker run -it --rm --name setup --network container:mssql -v $OUTPUT_DIR:/bitwarden bitwarden/setup \
dotnet Setup.dll -update 1 -db 1
echo "Database update complete"
}
function printEnvironment() {
docker pull bitwarden/setup
docker run -it --rm --name setup -v $OUTPUT_DIR:/bitwarden bitwarden/setup \
dotnet Setup.dll -printenv 1 -env $OS
}