Massive speedup in executing startup_scripts
This commit is contained in:
parent
fd955544af
commit
05d32ae705
2 changed files with 19 additions and 4 deletions
|
@ -45,10 +45,7 @@ fi
|
|||
if [ "$SKIP_STARTUP_SCRIPTS" == "true" ]; then
|
||||
echo "↩️ Skipping startup scripts"
|
||||
else
|
||||
for script in /opt/netbox/startup_scripts/*.py; do
|
||||
echo "⚙️ Executing '$script'"
|
||||
./manage.py shell --interface python < "${script}"
|
||||
done
|
||||
echo "import runpy; runpy.run_path('../startup_scripts')" | ./manage.py shell --interface python
|
||||
fi
|
||||
|
||||
# copy static files
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue