needs to run as user bitcoin

This commit is contained in:
rootzoll
2021-08-27 16:05:30 +02:00
parent 539abd91e8
commit d01b784e2d

View File

@@ -37,7 +37,11 @@ function setting() # FILE LINENUMBER NAME VALUE
if [ "$1" == "prestart" ]; then
echo "### RUNNING lnd.check.sh prestart"
echo "# user($USER)"
if [ "$USER" != "bitcoin" ]; then
echo "# FAIL: run as user 'bitcoin'"
exit 1
fi
# set default chain parameter
targetchain=$2