lbry-docker/lbrynet/stuff/checkmount.sh
Ryan McGuire bf89578fde lbrynet refactorings
* Production: Multi-stage Dockerfile.
 * Production: Adds VERSION ARG to specify the lbrynet version to download.
 * Compiler: Adds REPO ARG to specify alternate git repository to build from.
 * Fixes checkmount arg passing.
 * Adds correct binding IP address to start.sh
 * Adds mountable config to start.sh
 * Does not yet add any Layered Config like #70 (it's harder 'cause yaml)
2019-05-04 16:33:45 -04:00

12 lines
432 B
Bash

#!/bin/bash
## TODO: Make a bit more aware of the run mode of this appliance in case there is ever a test mode enabled in the start.sh
mountpoint=/home/lbrynet
if ! grep -qs ".* $mountpoint " /proc/mounts; then
echo "$mountpoint not mounted, refusing to run."
## TODO: We should have documentation that this error references directly with a URL as to why it won't run without a volume.
exit 1
else
bash -c "$*"
fi