syntax change --loog-level WARNING -> -l warn

This commit is contained in:
olli 2023-04-19 09:03:36 +02:00
parent 8f3aaf6b67
commit a39e3839da

View File

@ -108,18 +108,18 @@
[ -f "$docker/docker-compose.yml" ] || continue
g_echo_ok "$docker"
cd "${docker}"
if docker-compose --log-level WARNING --no-ansi pull --include-deps 2>&1 | grep "download complete"
if docker-compose -l warn --no-ansi pull --include-deps 2>&1 | grep "download complete"
then
g_echo_warn "Installiere $docker Update"
docker-compose --log-level WARNING --no-ansi down >$g_tmp/down 2>&1 || g_echo_error "$docker: docker-compose pull fehlgeschlagen: $(cat $g_tmp/down)"
docker-compose --log-level WARNING --no-ansi up -d >$g_tmp/up 2>&1 || g_echo_error "$docker: docker-compose up fehlgeschlagen: $(cat $g_tmp/up)"
docker-compose -l warn --no-ansi down >$g_tmp/down 2>&1 || g_echo_error "$docker: docker-compose pull fehlgeschlagen: $(cat $g_tmp/down)"
docker-compose -l warn --no-ansi up -d >$g_tmp/up 2>&1 || g_echo_error "$docker: docker-compose up fehlgeschlagen: $(cat $g_tmp/up)"
fi
if [ -f Dockerfile ]
then
if docker-compose --log-level WARNING --no-ansi build --pull --no-cache --force-rm >$g_tmp/build 2>&1
if docker-compose -l warn --no-ansi build --pull --no-cache --force-rm >$g_tmp/build 2>&1
then
docker-compose --log-level WARNING --no-ansi down >$g_tmp/down 2>&1 || g_echo_error "$docker: docker-compose pull fehlgeschlagen: $(cat $g_tmp/down)"
docker-compose --log-level WARNING --no-ansi up -d >$g_tmp/up 2>&1 || g_echo_error "$docker: docker-compose up fehlgeschlagen: $(cat $g_tmp/up)"
docker-compose -l warn --no-ansi down >$g_tmp/down 2>&1 || g_echo_error "$docker: docker-compose pull fehlgeschlagen: $(cat $g_tmp/down)"
docker-compose -l warn --no-ansi up -d >$g_tmp/up 2>&1 || g_echo_error "$docker: docker-compose up fehlgeschlagen: $(cat $g_tmp/up)"
else
g_echo_error "$docker: docker-compose build fehlgeschlagen: $(cat $g_tmp/build)"
fi