mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
more pulling
This commit is contained in:
parent
189240c81f
commit
43199e9a44
@ -19,12 +19,14 @@ if($domain -ne "localhost") {
|
||||
if(!(Test-Path -Path $letsEncryptPath )){
|
||||
New-Item -ItemType directory -Path $letsEncryptPath | Out-Null
|
||||
}
|
||||
docker pull certbot/certbot
|
||||
docker run -it --rm --name certbot -p 80:80 -v $outputDir/letsencrypt:/etc/letsencrypt/ certbot/certbot `
|
||||
certonly --standalone --noninteractive --agree-tos --preferred-challenges http --email $email -d $domain `
|
||||
--logs-dir /etc/letsencrypt/logs
|
||||
}
|
||||
}
|
||||
|
||||
docker pull bitwarden/setup
|
||||
docker run -it --rm --name setup -v ${outputDir}:/bitwarden bitwarden/setup `
|
||||
dotnet Setup.dll -install 1 -domain ${domain} -letsencrypt ${letsEncrypt}
|
||||
|
||||
|
@ -19,12 +19,14 @@ then
|
||||
then
|
||||
read -p "(!) Enter your email address (Let's Encrypt will send you certificate expiration reminders): " EMAIL
|
||||
mkdir -p $OUTPUT_DIR/letsencrypt
|
||||
docker pull certbot/certbot
|
||||
docker run -it --rm --name certbot -p 80:80 -v $OUTPUT_DIR/letsencrypt:/etc/letsencrypt/ certbot/certbot \
|
||||
certonly --standalone --noninteractive --agree-tos --preferred-challenges http --email $EMAIL -d $DOMAIN \
|
||||
--logs-dir /etc/letsencrypt/logs
|
||||
fi
|
||||
fi
|
||||
|
||||
docker pull bitwarden/setup
|
||||
docker run -it --rm --name setup -v $OUTPUT_DIR:/bitwarden bitwarden/setup \
|
||||
dotnet Setup.dll -install 1 -domain $DOMAIN -letsencrypt $LETS_ENCRYPT
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user