mynode/rootfs/standard/usr/bin/wait_on_uploader.sh

15 lines
277 B
Bash
Raw Normal View History

2019-07-25 02:51:12 +00:00
#!/bin/bash
set -e
set -x
source /usr/share/mynode/mynode_config.sh
# Don't start bitcoin if we are marked as an uploader
2019-07-25 02:51:12 +00:00
echo "Checking if uploader..."
while [ -f $UPLOADER_FILE ]; do
echo "We are an uploader, sleeping for 15 minutes..."
/bin/sleep 15m
done
exit 0