1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 08:32:50 -05:00

silent and custom LE ports

This commit is contained in:
Kyle Spearrin
2019-03-25 16:46:32 -04:00
parent 085c13f508
commit 96b4387ce6
2 changed files with 78 additions and 43 deletions

View File

@ -10,29 +10,6 @@ param (
[string] $output = ""
)
$year = (Get-Date).year
Write-Host @'
_ _ _ _
| |__ (_) |___ ____ _ _ __ __| | ___ _ __
| '_ \| | __\ \ /\ / / _` | '__/ _` |/ _ \ '_ \
| |_) | | |_ \ V V / (_| | | | (_| | __/ | | |
|_.__/|_|\__| \_/\_/ \__,_|_| \__,_|\___|_| |_|
'@
Write-Host "
Open source password management solutions
Copyright 2015-${year}, 8bit Solutions LLC
https://bitwarden.com, https://github.com/bitwarden
===================================================
"
docker --version
docker-compose --version
echo ""
# Setup
$scriptPath = $MyInvocation.MyCommand.Path
@ -71,6 +48,39 @@ function Check-Output-Dir-Not-Exists {
}
}
function Write-Line($str) {
if($env:BITWARDEN_QUIET -ne "true") {
Write-Host $str
}
}
# Intro
$year = (Get-Date).year
Write-Line @'
_ _ _ _
| |__ (_) |___ ____ _ _ __ __| | ___ _ __
| '_ \| | __\ \ /\ / / _` | '__/ _` |/ _ \ '_ \
| |_) | | |_ \ V V / (_| | | | (_| | __/ | | |
|_.__/|_|\__| \_/\_/ \__,_|_| \__,_|\___|_| |_|
'@
Write-Line "
Open source password management solutions
Copyright 2015-${year}, 8bit Solutions LLC
https://bitwarden.com, https://github.com/bitwarden
===================================================
"
if($env:BITWARDEN_QUIET -ne "true") {
docker --version
docker-compose --version
}
Write-Line ""
# Commands
if ($install) {
@ -102,8 +112,8 @@ elseif ($stop) {
}
elseif ($updateself) {
Download-Self
echo "Updated self."
Write-Line "Updated self."
}
else {
echo "No command found."
Write-Line "No command found."
}