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

added pull when starting

This commit is contained in:
Kyle Spearrin
2017-08-26 22:36:25 -04:00
parent f7fd4dec96
commit fae34f1ee3
2 changed files with 17 additions and 0 deletions

View File

@ -33,6 +33,10 @@ function dockerComposeDown() {
docker-compose -f $DOCKER_DIR/docker-compose.yml -f $DOCKER_DIR/docker-compose.$OS.yml down
}
function dockerComposePull() {
docker-compose -f $DOCKER_DIR/docker-compose.yml -f $DOCKER_DIR/docker-compose.$OS.yml pull
}
function dockerPrune() {
docker image prune -f
}
@ -61,10 +65,14 @@ function printEnvironment() {
if [ "$1" == "start" -o "$1" == "restart" ]
then
dockerComposeDown
dockerComposePull
updateLetsEncrypt
dockerComposeUp
dockerPrune
printEnvironment
elif [ "$1" == "pull" ]
then
dockerComposePull
elif [ "$1" == "stop" ]
then
dockerComposeDown