Skip to content

Commit

Permalink
Clearly prohibit root from installing the GUI (Chia-Network#5232)
Browse files Browse the repository at this point in the history
* GUI should not build or run as root

* Use id -u instead

* shellcheck
  • Loading branch information
hoffmang9 authored May 18, 2021
1 parent 880df53 commit 0af1006
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions install-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ if [ -z "$VIRTUAL_ENV" ]; then
exit 1
fi

if [ "$(id -u)" = 0 ]; then
echo "The Chia Blockchain GUI can not be installed or run by the root user."
exit 1
fi

# Allows overriding the branch or commit to build in chia-blockchain-gui
SUBMODULE_BRANCH=$1

Expand Down

0 comments on commit 0af1006

Please sign in to comment.