Rewrite trace_paths management command and call in upgrade.sh

This commit is contained in:
Jeremy Stretch
2020-10-07 10:23:15 -04:00
parent 6db3c65bcc
commit f560693748
3 changed files with 86 additions and 68 deletions

View File

@@ -55,6 +55,11 @@ COMMAND="python3 netbox/manage.py migrate"
echo "Applying database migrations ($COMMAND)..."
eval $COMMAND || exit 1
# Trace any missing cable paths (not typically needed)
COMMAND="python3 netbox/manage.py trace_paths --no-input"
echo "Checking for missing cable paths ($COMMAND)..."
eval $COMMAND || exit 1
# Collect static files
COMMAND="python3 netbox/manage.py collectstatic --no-input"
echo "Collecting static files ($COMMAND)..."