Skip to content

Commit 313d1a3

Browse files
committed
Merge branch 'ScanPlusGmbH-custom-scripts'
2 parents de1e367 + 8428b9c commit 313d1a3

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

configuration/configuration.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ def read_secret(secret_name):
161161
# this setting is derived from the installed location.
162162
REPORTS_ROOT = os.environ.get('REPORTS_ROOT', '/etc/netbox/reports')
163163

164+
# The file path where custom scripts will be stored. A trailing slash is not needed. Note that the default value of
165+
# this setting is derived from the installed location.
166+
SCRIPTS_ROOT = os.environ.get('SCRIPTS_ROOT', '/etc/netbox/scripts')
167+
164168
# Time zone (default: UTC)
165169
TIME_ZONE = os.environ.get('TIME_ZONE', 'UTC')
166170

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ services:
1212
- ./initializers:/opt/netbox/initializers:z,ro
1313
- ./configuration:/etc/netbox/config:z,ro
1414
- ./reports:/etc/netbox/reports:z,ro
15+
- ./scripts:/etc/netbox/scripts:z,ro
1516
- netbox-nginx-config:/etc/netbox-nginx:z
1617
- netbox-static-files:/opt/netbox/netbox/static:z
1718
- netbox-media-files:/opt/netbox/netbox/media:z

scripts/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)