Commit 38121f94 authored by Dmitry Lukhtionov's avatar Dmitry Lukhtionov
Browse files

Fix config for FreeBSD

parent 6524a628
......@@ -56,8 +56,12 @@ class Environment(Model):
# json-serialized service configuration
# pool id -> service -> key -> value
is_default = BooleanField(default=False)
config_order = CharField(
default="yaml:///opt/noc/etc/tower.yml,yaml:///opt/noc/etc/settings.yml,env:///NOC")
if os.getenv("OSTYPE") == "FreeBSD":
config_order = CharField(
default="yaml:///usr/local/noc/etc/tower.yml,yaml:///usr/local/noc/etc/settings.yml,env:///NOC")
else:
config_order = CharField(
default="yaml:///opt/noc/etc/tower.yml,yaml:///opt/noc/etc/settings.yml,env:///NOC")
install_method = CharField(default="git")
def list_item(self):
......
Supports Markdown
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