395d0a45df
* 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)
12 lines
432 B
Bash
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
|