mirror of
https://github.com/bitwarden/server.git
synced 2024-11-26 12:55:17 +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 )){
|
if(!(Test-Path -Path $letsEncryptPath )){
|
||||||
New-Item -ItemType directory -Path $letsEncryptPath | Out-Null
|
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 `
|
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 `
|
certonly --standalone --noninteractive --agree-tos --preferred-challenges http --email $email -d $domain `
|
||||||
--logs-dir /etc/letsencrypt/logs
|
--logs-dir /etc/letsencrypt/logs
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
docker pull bitwarden/setup
|
||||||
docker run -it --rm --name setup -v ${outputDir}:/bitwarden bitwarden/setup `
|
docker run -it --rm --name setup -v ${outputDir}:/bitwarden bitwarden/setup `
|
||||||
dotnet Setup.dll -install 1 -domain ${domain} -letsencrypt ${letsEncrypt}
|
dotnet Setup.dll -install 1 -domain ${domain} -letsencrypt ${letsEncrypt}
|
||||||
|
|
||||||
|
@ -19,12 +19,14 @@ then
|
|||||||
then
|
then
|
||||||
read -p "(!) Enter your email address (Let's Encrypt will send you certificate expiration reminders): " EMAIL
|
read -p "(!) Enter your email address (Let's Encrypt will send you certificate expiration reminders): " EMAIL
|
||||||
mkdir -p $OUTPUT_DIR/letsencrypt
|
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 \
|
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 \
|
certonly --standalone --noninteractive --agree-tos --preferred-challenges http --email $EMAIL -d $DOMAIN \
|
||||||
--logs-dir /etc/letsencrypt/logs
|
--logs-dir /etc/letsencrypt/logs
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
docker pull bitwarden/setup
|
||||||
docker run -it --rm --name setup -v $OUTPUT_DIR:/bitwarden bitwarden/setup \
|
docker run -it --rm --name setup -v $OUTPUT_DIR:/bitwarden bitwarden/setup \
|
||||||
dotnet Setup.dll -install 1 -domain $DOMAIN -letsencrypt $LETS_ENCRYPT
|
dotnet Setup.dll -install 1 -domain $DOMAIN -letsencrypt $LETS_ENCRYPT
|
||||||
|
|
||||||
|
@ -35,18 +35,21 @@ function Docker-Prune {
|
|||||||
|
|
||||||
function Update-Lets-Encrypt {
|
function Update-Lets-Encrypt {
|
||||||
if(Test-Path -Path "${outputDir}\letsencrypt\live") {
|
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 `
|
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
|
renew --logs-dir /etc/letsencrypt/logs
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function Update-Database {
|
function Update-Database {
|
||||||
|
docker pull bitwarden/setup
|
||||||
docker run -it --rm --name setup --network container:mssql -v ${outputDir}:/bitwarden bitwarden/setup `
|
docker run -it --rm --name setup --network container:mssql -v ${outputDir}:/bitwarden bitwarden/setup `
|
||||||
dotnet Setup.dll -update 1 -db 1
|
dotnet Setup.dll -update 1 -db 1
|
||||||
echo "Database update complete"
|
echo "Database update complete"
|
||||||
}
|
}
|
||||||
|
|
||||||
function Print-Environment {
|
function Print-Environment {
|
||||||
|
docker pull bitwarden/setup
|
||||||
docker run -it --rm --name setup -v ${outputDir}:/bitwarden bitwarden/setup `
|
docker run -it --rm --name setup -v ${outputDir}:/bitwarden bitwarden/setup `
|
||||||
dotnet Setup.dll -printenv 1 -env win
|
dotnet Setup.dll -printenv 1 -env win
|
||||||
}
|
}
|
||||||
|
@ -44,18 +44,21 @@ function dockerPrune() {
|
|||||||
function updateLetsEncrypt() {
|
function updateLetsEncrypt() {
|
||||||
if [ -d "${outputDir}/letsencrypt/live" ]
|
if [ -d "${outputDir}/letsencrypt/live" ]
|
||||||
then
|
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 \
|
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
|
renew --logs-dir /etc/letsencrypt/logs
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateDatabase() {
|
function updateDatabase() {
|
||||||
|
docker pull bitwarden/setup
|
||||||
docker run -it --rm --name setup --network container:mssql -v $OUTPUT_DIR:/bitwarden bitwarden/setup \
|
docker run -it --rm --name setup --network container:mssql -v $OUTPUT_DIR:/bitwarden bitwarden/setup \
|
||||||
dotnet Setup.dll -update 1 -db 1
|
dotnet Setup.dll -update 1 -db 1
|
||||||
echo "Database update complete"
|
echo "Database update complete"
|
||||||
}
|
}
|
||||||
|
|
||||||
function printEnvironment() {
|
function printEnvironment() {
|
||||||
|
docker pull bitwarden/setup
|
||||||
docker run -it --rm --name setup -v $OUTPUT_DIR:/bitwarden bitwarden/setup \
|
docker run -it --rm --name setup -v $OUTPUT_DIR:/bitwarden bitwarden/setup \
|
||||||
dotnet Setup.dll -printenv 1 -env $OS
|
dotnet Setup.dll -printenv 1 -env $OS
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user