13 lines
312 B
Bash
13 lines
312 B
Bash
#!/bin/sh
|
|
# Run sync.py once immediately, then sleep for one hour between runs.
|
|
# Using sh for maximum compatibility in slim images.
|
|
|
|
set -e
|
|
|
|
while true; do
|
|
echo "Running sync.py at $(date -u)"
|
|
python sync.py || echo "sync.py exited with non-zero status"
|
|
echo "Sleeping for 3600 seconds"
|
|
sleep 3600
|
|
done
|