net-im/mjolnir: fix init script
continuous-integration/drone/push Build is passing Details

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
1 changed files with 4 additions and 1 deletions

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
}