Commit 0a9025cc authored by Vitaly Potyarkin's avatar Vitaly Potyarkin
Browse files

Use more specific checks for root

parent 5577156c
......@@ -128,7 +128,7 @@ install_topic() {
[[ -s "$meta" ]] && source "$meta"
# Handle system-wide actions
if [[ "$SCOPE" == "system" && "$USER" != "root" ]]
if [[ "$SCOPE" == "system" && "$EUID" != "0" ]]
then
echo "Must be root to change system configuration" >&2
return 1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment