mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-11-23 00:13:11 +01:00
58debafa8a
Adds an additional container in which the new "housekeeping" command from Netbox v3.0.0 is run.
9 lines
213 B
Bash
Executable File
9 lines
213 B
Bash
Executable File
#!/bin/bash
|
|
SECONDS=${HOUSEKEEPING_INTERVAL:=86400}
|
|
echo "Interval set to ${SECONDS} seconds"
|
|
while true; do
|
|
date
|
|
/opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py housekeeping
|
|
sleep ${SECONDS}s
|
|
done
|