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

Support docker compose v2 (#1799)

This commit is contained in:
Julien Eyraud
2022-02-24 16:36:59 +01:00
committed by GitHub
parent 1d5c9a4f9a
commit 4ecfc66877
2 changed files with 25 additions and 9 deletions

View File

@ -29,6 +29,12 @@ if [ $# -eq 2 ]
then
OUTPUT=$2
fi
if command -v docker-compose &> /dev/null
then
dccmd='docker-compose'
else
dccmd='docker compose'
fi
SCRIPTS_DIR="$OUTPUT/scripts"
GITHUB_BASE_URL="https://raw.githubusercontent.com/bitwarden/server/master"
@ -40,7 +46,11 @@ KEYCONNECTORVERSION="1.0.1"
echo "bitwarden.sh version $COREVERSION"
docker --version
docker-compose --version
if [[ "$dccmd" == "docker compose" ]]; then
$dccmd version
else
$dccmd --version
fi
echo ""