Commit f360dc29 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

Make empty config.rc if missing at startup

If missing, daemon fails to start on osx (packaged with platypus).
parent b8a7afab
...@@ -54,6 +54,10 @@ else: ...@@ -54,6 +54,10 @@ else:
os.makedirs(AGKYRA_DIR, mode=stat.S_IRWXU) os.makedirs(AGKYRA_DIR, mode=stat.S_IRWXU)
CONFIG_PATH = os.path.join(AGKYRA_DIR, 'config.rc') CONFIG_PATH = os.path.join(AGKYRA_DIR, 'config.rc')
if not os.path.exists(CONFIG_PATH):
open(CONFIG_PATH, mode="a+").close()
os.chmod(CONFIG_PATH, stat.S_IRUSR | stat.S_IWUSR)
# neutralize kamaki CONFIG_ENV for this session # neutralize kamaki CONFIG_ENV for this session
config.CONFIG_ENV = '' config.CONFIG_ENV = ''
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