update setup.py

This commit is contained in:
VirtuBox
2019-10-05 00:46:23 +02:00
parent 8120a3860e
commit cf28d4b292

View File

@@ -16,11 +16,12 @@ for name in glob.glob('config/plugins.d/*.conf'):
for name in glob.glob('wo/cli/templates/*.mustache'):
templates.insert(1, name)
if not os.path.exists('/var/log/wo/'):
os.makedirs('/var/log/wo/')
if os.geteuid() == 0:
if not os.path.exists('/var/log/wo/'):
os.makedirs('/var/log/wo/')
if not os.path.exists('/var/lib/wo/tmp/'):
os.makedirs('/var/lib/wo/tmp/')
if not os.path.exists('/var/lib/wo/tmp/'):
os.makedirs('/var/lib/wo/tmp/')
setup(name='wordops',
version='3.9.9.2',