mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-11 05:09:40 +02:00
fix write-macaroons
This commit is contained in:
parent
be5f8ee469
commit
56a3aa745b
@ -5,7 +5,7 @@
|
||||
# command info
|
||||
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
|
||||
echo "small config script to switch LNBits on or off"
|
||||
echo "bonus.lnbits.sh [on|off|status|menu]"
|
||||
echo "bonus.lnbits.sh [on|off|status|menu|write-macaroons]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ -74,7 +74,7 @@ if [ "$1" = "write-macaroons" ]; then
|
||||
|
||||
# make sure its run as user admin
|
||||
adminUserId=$(id -u admin)
|
||||
if [ "${$EUID}" != "${adminUserId}" ]; then
|
||||
if [ "${EUID}" != "${adminUserId}" ]; then
|
||||
echo "error='please run as admin user'"
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user