Commit d2fb2328 authored by Dmytro Karpenko's avatar Dmytro Karpenko
Browse files

Support for Ubuntu 18.04

parent 02cc74ce
......@@ -45,6 +45,7 @@ Installation
* RedHat 7.x
* Ubuntu 16.04
* Ubuntu 17.10
* Ubuntu 18.04
If you have other OS, see 'python jura_to_es.py --help' and launch
the tool manually. You might also have to launch the tool manually
if you have old Python 2.6.
......
......@@ -217,7 +217,7 @@ def monitor_dir(xml_dir, es, es_index, record_prefix, pidfile, logfile):
or OS_name.startswith("Ubuntu")):
OS_version = OS_name.split("-")[1]
if (OS_version.startswith("7") or OS_version.startswith("16.04")
or OS_version.startswith("17.10")):
or OS_version.startswith("17.10") or OS_version.startswith("18.04")):
systemd_OS = True
if not systemd_OS:
......
......@@ -32,7 +32,7 @@ OS_version = OS_name.split("-")[1]
if OS_version.startswith("6"):
systemd_OS = False
elif (OS_version.startswith("7") or OS_version.startswith("16.04")
or OS_version.startswith("17.10")):
or OS_version.startswith("17.10") or OS_version.startswith("18.04")):
systemd_OS = True
else:
print "Unsupported OS version. Please, read the help of the python script itself"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment