Browse Source

ensure sourced

migrate-pregen
nicolas.dorier 7 years ago
parent
commit
13f0b77b59
  1. 5
      btcpay-setup.sh

5
btcpay-setup.sh

@ -1,5 +1,10 @@
#!/bin/bash
if [ "$0" != "$BASH_SOURCE" ]; then
echo "This script must be sourced \". btcpay-setup.sh\""
exit 1
fi
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
return

Loading…
Cancel
Save