From 173314eb8ff7fa708261b40011e0ec24265fb1c9 Mon Sep 17 00:00:00 2001 From: Michal Hrusecky Date: Thu, 1 Oct 2020 16:02:42 +0200 Subject: [PATCH] mariadb: Handle non-existent logger in init Make sure init script has a fallback when logger is not available. Signed-off-by: Michal Hrusecky --- utils/mariadb/files/mysqld.init | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/mariadb/files/mysqld.init b/utils/mariadb/files/mysqld.init index a1e6a44b1..717e8d68d 100644 --- a/utils/mariadb/files/mysqld.init +++ b/utils/mariadb/files/mysqld.init @@ -7,6 +7,7 @@ STOP=10 NAME=mysqld LOGGER="/usr/bin/logger -p user.err -s -t $NAME --" +[ -x "$LOGGER" ] || LOGGER="echo" MYSQLADMIN=/usr/bin/mysqladmin MYSQLD=/usr/bin/$NAME