Don't use bash internal variable name
This commit is contained in:
parent
8b16b16e45
commit
7d871778eb
@ -1,8 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
SECONDS=${HOUSEKEEPING_INTERVAL:=86400}
|
SLEEP_SECONDS=${HOUSEKEEPING_INTERVAL:=86400}
|
||||||
echo "Interval set to ${SECONDS} seconds"
|
echo "Interval set to ${SLEEP_SECONDS} seconds"
|
||||||
while true; do
|
while true; do
|
||||||
date
|
date
|
||||||
/opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py housekeeping
|
/opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py housekeeping
|
||||||
sleep "${SECONDS}s"
|
sleep "${SLEEP_SECONDS}s"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user