created preentry script to help with local development

This commit is contained in:
Jamie (Bear) Murphy 2022-04-08 21:49:35 +01:00 committed by Jamie Murphy
parent 919d139b6b
commit 4ef67d6071
4 changed files with 22 additions and 0 deletions

View file

@ -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
View 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 "$@"