diff options
author | Armin Kuster <akuster808@gmail.com> | 2019-08-28 08:44:31 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2019-08-28 20:29:11 -0700 |
commit | c83f0682e400475fdd53e4cabda0d6112016eebc (patch) | |
tree | 1cbc88c66bbb3e4769e2353da139bc595fbb2b42 /recipes-security/fail2ban/files/initd | |
parent | 9e40485f6e8ae7858ca857c5f73054db1d2e6c28 (diff) | |
download | meta-security-wip.tar.gz |
fail2ban: remove Py2 and updatewip
remove patch included in update
fix issues do to python3
fix init file
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'recipes-security/fail2ban/files/initd')
-rw-r--r-- | recipes-security/fail2ban/files/initd | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/recipes-security/fail2ban/files/initd b/recipes-security/fail2ban/files/initd index 4f4b394..ef58e2d 100644 --- a/recipes-security/fail2ban/files/initd +++ b/recipes-security/fail2ban/files/initd | |||
@@ -17,6 +17,14 @@ | |||
17 | # Check that the config file exists | 17 | # Check that the config file exists |
18 | [ -f /etc/fail2ban/fail2ban.conf ] || exit 0 | 18 | [ -f /etc/fail2ban/fail2ban.conf ] || exit 0 |
19 | 19 | ||
20 | echo_success() { | ||
21 | echo -n "OK" | ||
22 | } | ||
23 | |||
24 | echo_failure() { | ||
25 | echo -n "FAIL" | ||
26 | } | ||
27 | |||
20 | check_privsep_dir() { | 28 | check_privsep_dir() { |
21 | # Create the PrivSep empty dir if necessary | 29 | # Create the PrivSep empty dir if necessary |
22 | if [ ! -d /var/run/fail2ban ]; then | 30 | if [ ! -d /var/run/fail2ban ]; then |