diff options
author | Michael Orlitzky <michael@orlitzky.com> | 2018-07-15 16:49:49 -0400 |
---|---|---|
committer | Michael Orlitzky <michael@orlitzky.com> | 2021-05-14 07:50:34 -0400 |
commit | 87e9cff065c9add436e4a9488239a89835b1bc48 (patch) | |
tree | 400a5a1d642305257bcf54e2fafdf2024ade3c42 /files | |
parent | 36a7abe82fa17ed4cb697f745a48f77afd0618c8 (diff) | |
download | fail2ban-87e9cff065c9add436e4a9488239a89835b1bc48.tar.gz |
files/fail2ban-openrc.init.in: remove redundant "return" from start_pre.
OpenRC functions will exit with the return code from the last command
by default, so there's no need for the "|| return 1" in our
single-line start_pre() phase.
Diffstat (limited to 'files')
-rwxr-xr-x | files/fail2ban-openrc.init.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/fail2ban-openrc.init.in b/files/fail2ban-openrc.init.in index a2f4d34f..ad977274 100755 --- a/files/fail2ban-openrc.init.in +++ b/files/fail2ban-openrc.init.in @@ -44,7 +44,7 @@ depend() { } start_pre() { - checkpath -d "${FAIL2BAN_RUNDIR}" || return 1 + checkpath -d "${FAIL2BAN_RUNDIR}" } reload() { |