Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
fumufu86
tower
Commits
38121f94
Commit
38121f94
authored
Apr 13, 2018
by
Dmitry Lukhtionov
Browse files
Fix config for FreeBSD
parent
6524a628
Changes
1
Hide whitespace changes
Inline
Side-by-side
tower/models/environment.py
View file @
38121f94
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment