mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-25 11:13:12 +02:00
#3191 allow run config api as non-root
This commit is contained in:
@@ -2,11 +2,9 @@
|
||||
|
||||
# main repo: https://github.com/fusion44/blitz_api
|
||||
|
||||
# restart the systemd `blitzapi` when credentials of lnd or bitcoind are changeing and it will
|
||||
# restart the systemd `blitzapi` when credentials of lnd or bitcoind are changed and it will
|
||||
# excute the `update-config` automatically before restarting
|
||||
|
||||
# TODO: On sd card install there might be no Bitcoin & Lightning confs - make sure backend runs without
|
||||
|
||||
# command info
|
||||
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ "$1" = "-help" ]; then
|
||||
echo "Manage RaspiBlitz Web API"
|
||||
@@ -17,12 +15,6 @@ if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ "$1" = "-help" ];
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# check if started with sudo
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
echo "error='run as root'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
DEFAULT_GITHUB_USER="fusion44"
|
||||
DEFAULT_GITHUB_REPO="blitz_api"
|
||||
DEFAULT_GITHUB_BRANCH="main"
|
||||
|
Reference in New Issue
Block a user