1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 08:32:50 -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

@ -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