net-im/mjolnir: fix init script
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
parent
51631cc764
commit
087308ee85
@ -19,5 +19,8 @@ depend() {
|
|||||||
|
|
||||||
start_pre() {
|
start_pre() {
|
||||||
local cfg=/opt/mjolnir/config/production.yaml
|
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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user