mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-11-25 17:33:20 +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
|