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

I'm sure the check worked before, but now it fails? 😕

Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
tastytea 2022-11-25 16:11:26 +01:00
parent 800f3a4981
commit 9673462aa3
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 8 additions and 7 deletions

View File

@ -17,10 +17,11 @@ depend() {
need net need net
} }
start_pre() { # doesn't work all of a sudden for some reason
local cfg=/opt/mjolnir/config/production.yaml # start_pre() {
if [[ -f ${cfg} ]]; then # local cfg=/opt/mjolnir/config/production.yaml
echo "${cfg} does not exist or is not a regular file" >&2 # if [[ -f ${cfg} ]]; then
return 1 # echo "${cfg} does not exist or is not a regular file" >&2
fi # return 1
} # fi
# }