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

print environment after start

This commit is contained in:
Kyle Spearrin
2017-08-24 11:16:01 -04:00
parent 17777dac78
commit e7351753c7
4 changed files with 39 additions and 5 deletions

View File

@ -41,6 +41,11 @@ function Update-Database {
echo "Database update complete"
}
function Print-Environment {
docker run -it --rm --name setup -v ${outputDir}:/bitwarden bitwarden/setup `
dotnet Setup.dll -printenv 1 -env win
}
# Commands
if($start -Or $restart) {
@ -48,6 +53,7 @@ if($start -Or $restart) {
Update-Lets-Encrypt
Docker-Compose-Up
Docker-Prune
Print-Environment
}
elseif($stop) {
Docker-Compose-Down

View File

@ -51,6 +51,11 @@ function updateDatabase() {
echo "Database update complete"
}
function printEnvironment() {
docker run -it --rm --name setup -v $OUTPUT_DIR:/bitwarden bitwarden/setup \
dotnet Setup.dll -printenv 1 -env $OS
}
# Commands
if [ "$1" == "start" -o "$1" == "restart" ]
@ -59,6 +64,7 @@ then
updateLetsEncrypt
dockerComposeUp
dockerPrune
printEnvironment
elif [ "$1" == "stop" ]
then
dockerComposeDown