net-im/mjolnir: fix init script

Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
tastytea 2022-10-31 19:12:13 +01:00
parent 51631cc764
commit 087308ee85
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -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
}