fix Seafile-CE init error.

This commit is contained in:
Hulk 2019-06-11 19:01:13 +08:00
parent fe7016a77b
commit 65d1ec136f

View file

@ -173,6 +173,7 @@ COMPRESS_CACHE_BACKEND = 'locmem'""")
# Disabled the Elasticsearch process on Seafile-container # Disabled the Elasticsearch process on Seafile-container
# Connection to the Elasticsearch-container # Connection to the Elasticsearch-container
if os.path.exists(join(topdir, 'conf', 'seafevents.conf')):
with open(join(topdir, 'conf', 'seafevents.conf'), 'r') as fp: with open(join(topdir, 'conf', 'seafevents.conf'), 'r') as fp:
fp_lines = fp.readlines() fp_lines = fp.readlines()
if '[INDEX FILES]\n' in fp_lines: if '[INDEX FILES]\n' in fp_lines: