Merge pull request #571 from tobiasge/house

Added container for Netbox housekeeping command
This commit is contained in:
Tobias Genannt
2021-09-17 10:52:28 +02:00
committed by GitHub
6 changed files with 26 additions and 10 deletions

8
docker/housekeeping.sh Executable file
View File

@ -0,0 +1,8 @@
#!/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