mynode/rootfs/standard/usr/bin/wait_on_uploader.sh
2019-07-24 21:51:12 -05:00

15 lines
278 B
Bash
Executable File

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