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
}
start_pre() {
local cfg=/opt/mjolnir/config/production.yaml
if [[ -f ${cfg} ]]; then
echo "${cfg} does not exist or is not a regular file" >&2
return 1
fi
}
# doesn't work all of a sudden for some reason
# start_pre() {
# local cfg=/opt/mjolnir/config/production.yaml
# if [[ -f ${cfg} ]]; then
# echo "${cfg} does not exist or is not a regular file" >&2
# return 1
# fi
# }