2021-09-03 12:48:30 +02:00
|
|
|
#!/bin/bash
|
2022-04-08 22:49:35 +02:00
|
|
|
# run preentry script to install any local depencencies / file mods
|
|
|
|
/opt/netbox/preentry.sh
|
|
|
|
|
2021-09-03 12:48:30 +02:00
|
|
|
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
|
2021-09-07 09:47:38 +02:00
|
|
|
sleep "${SECONDS}s"
|
2021-09-03 12:48:30 +02:00
|
|
|
done
|