2019-04-25 14:06:38 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-04-26 02:41:42 +02:00
|
|
|
## 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
|
2019-04-25 14:06:38 +02:00
|
|
|
mountpoint=/home/lbrynet
|
|
|
|
|
|
|
|
if ! grep -qs ".* $mountpoint " /proc/mounts; then
|
|
|
|
echo "$mountpoint not mounted, refusing to run."
|
2019-04-26 02:41:42 +02:00
|
|
|
## TODO: We should have documentation that this error references directly with a URL as to why it won't run without a volume.
|
2019-04-25 14:06:38 +02:00
|
|
|
exit 1
|
|
|
|
else
|
2019-05-01 18:09:13 +02:00
|
|
|
bash -c "$*"
|
2019-04-25 14:06:38 +02:00
|
|
|
fi
|