From 087308ee85433fb3b67cd7c165bcada493377ea3 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 31 Oct 2022 19:12:13 +0100 Subject: [PATCH] net-im/mjolnir: fix init script Signed-off-by: tastytea --- net-im/mjolnir/files/mjolnir.initd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net-im/mjolnir/files/mjolnir.initd b/net-im/mjolnir/files/mjolnir.initd index fd76484..15a6d93 100644 --- a/net-im/mjolnir/files/mjolnir.initd +++ b/net-im/mjolnir/files/mjolnir.initd @@ -19,5 +19,8 @@ depend() { start_pre() { local cfg=/opt/mjolnir/config/production.yaml - [[ -f ${cfg} ]] || echo "${cfg} does not exist or is not a regular file" >&2 + if [[ -f ${cfg} ]]; then + echo "${cfg} does not exist or is not a regular file" >&2 + return 1 + fi }