created preentry script to help with local development
This commit is contained in:
parent
919d139b6b
commit
4ef67d6071
4 changed files with 22 additions and 0 deletions
|
@ -1,4 +1,7 @@
|
|||
#!/bin/bash
|
||||
# run preentry script to install any local depencencies / file mods
|
||||
/opt/netbox/preentry.sh
|
||||
|
||||
SECONDS=${HOUSEKEEPING_INTERVAL:=86400}
|
||||
echo "Interval set to ${SECONDS} seconds"
|
||||
while true; do
|
||||
|
|
16
docker/preentry.sh
Normal file
16
docker/preentry.sh
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Example of how to activate a development plugin
|
||||
|
||||
# echo -e "installing custom plugin"
|
||||
# source /opt/netbox/venv/bin/activate
|
||||
# cd /opt/plugin_source
|
||||
# python3 setup.py develop
|
||||
# echo -e "finished installing custom plugin"
|
||||
|
||||
|
||||
# follow on scripts expect this to be the current dir.
|
||||
# uncomment if you have changed directory
|
||||
# cd /opt/netbox/netbox
|
||||
exec "$@"
|
Loading…
Add table
Add a link
Reference in a new issue