Newer
Older
netbox-docker / docker / housekeeping.sh
@movelg movelg on 11 Nov 2022 233 bytes Don't use bash internal variable name
#!/bin/bash
SLEEP_SECONDS=${HOUSEKEEPING_INTERVAL:=86400}
echo "Interval set to ${SLEEP_SECONDS} seconds"
while true; do
  date
  /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py housekeeping
  sleep "${SLEEP_SECONDS}s"
done