mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-11-29 11:23:09 +01:00
2926d1a11d
Co-authored-by: Christian Mäder <cimnine@users.noreply.github.com>
9 lines
215 B
Bash
Executable File
9 lines
215 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
|