mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-11-25 17:33:20 +01:00
Merge pull request #883 from movelg/housekeeping_var_name_fix
Housekeeping var name fix
This commit is contained in:
commit
925f41b97f
@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
SECONDS=${HOUSEKEEPING_INTERVAL:=86400}
|
||||
echo "Interval set to ${SECONDS} seconds"
|
||||
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 "${SECONDS}s"
|
||||
sleep "${SLEEP_SECONDS}s"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user