mirror of https://github.com/fail2ban/fail2ban
Merge pull request #1068 from yarikoptic/enh/var-run-fail2ban
BF: 'create' /var/run/fail2ban on systems with /var/runpull/1108/head
commit
1ebea39ec5
8
setup.py
8
setup.py
|
@ -78,6 +78,12 @@ if setuptools:
|
||||||
else:
|
else:
|
||||||
setup_extra = {}
|
setup_extra = {}
|
||||||
|
|
||||||
|
data_files_extra = []
|
||||||
|
if os.path.exists('/var/run'):
|
||||||
|
# if we are on the system with /var/run -- we are to use it for having fail2ban/
|
||||||
|
# directory there for socket file etc
|
||||||
|
data_files_extra += [('/var/run/fail2ban', '')]
|
||||||
|
|
||||||
# Get version number, avoiding importing fail2ban.
|
# Get version number, avoiding importing fail2ban.
|
||||||
# This is due to tests not functioning for python3 as 2to3 takes place later
|
# This is due to tests not functioning for python3 as 2to3 takes place later
|
||||||
exec(open(join("fail2ban", "version.py")).read())
|
exec(open(join("fail2ban", "version.py")).read())
|
||||||
|
@ -145,7 +151,7 @@ setup(
|
||||||
['README.md', 'README.Solaris', 'DEVELOP', 'FILTERS',
|
['README.md', 'README.Solaris', 'DEVELOP', 'FILTERS',
|
||||||
'doc/run-rootless.txt']
|
'doc/run-rootless.txt']
|
||||||
)
|
)
|
||||||
],
|
] + data_files_extra,
|
||||||
**setup_extra
|
**setup_extra
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue