From: Quentin Young Date: Mon, 30 Aug 2021 19:21:32 +0000 (-0400) Subject: docker: add expected log functions to alpine docker-start X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=9b7cb6b37feb66dbae85b897e95c96b7a3569db9;p=matthieu%2Ffrr.git docker: add expected log functions to alpine docker-start Some basic functions are required by frrcommon.sh Signed-off-by: Quentin Young --- diff --git a/docker/alpine/docker-start b/docker/alpine/docker-start index c20df42e8e..698f4f93c9 100755 --- a/docker/alpine/docker-start +++ b/docker/alpine/docker-start @@ -1,4 +1,18 @@ #!/bin/ash +if [ -r "/lib/lsb/init-functions" ]; then + . /lib/lsb/init-functions +else + log_success_msg() { + echo "$@" + } + log_warning_msg() { + echo "$@" >&2 + } + log_failure_msg() { + echo "$@" >&2 + } +fi + source /usr/lib/frr/frrcommon.sh /usr/lib/frr/watchfrr $(daemon_list)