mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-08-17 14:50:57 +03:00
Clearly prohibit root from installing the GUI (#5232)
* GUI should not build or run as root * Use id -u instead * shellcheck
This commit is contained in:
parent
880df53f72
commit
0af10068ce
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user