mirror of
https://github.com/bitwarden/server.git
synced 2025-04-20 04:28:13 -05:00
Bwsh surpress warnings (#1084)
* surpessing the missing docker networks message in the bash script when the docker-compose project is already down * surpressing the missing docker network warnings in the powershell script
This commit is contained in:
parent
5059e0a693
commit
2dc0fe3b31
@ -83,8 +83,10 @@ function Docker-Compose-Up {
|
|||||||
|
|
||||||
function Docker-Compose-Down {
|
function Docker-Compose-Down {
|
||||||
Docker-Compose-Files
|
Docker-Compose-Files
|
||||||
|
if ((Invoke-Expression ("docker-compose ps{0}" -f "") | Measure-Object -Line).lines -gt 2 ) {
|
||||||
Invoke-Expression ("docker-compose down{0}" -f "") #TODO: qFlag
|
Invoke-Expression ("docker-compose down{0}" -f "") #TODO: qFlag
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function Docker-Compose-Pull {
|
function Docker-Compose-Pull {
|
||||||
Docker-Compose-Files
|
Docker-Compose-Files
|
||||||
|
2
scripts/run.sh
Normal file → Executable file
2
scripts/run.sh
Normal file → Executable file
@ -91,7 +91,9 @@ function dockerComposeUp() {
|
|||||||
|
|
||||||
function dockerComposeDown() {
|
function dockerComposeDown() {
|
||||||
dockerComposeFiles
|
dockerComposeFiles
|
||||||
|
if [ $(docker-compose ps | wc -l) -gt 2 ]; then
|
||||||
docker-compose down
|
docker-compose down
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function dockerComposePull() {
|
function dockerComposePull() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user