From c8daf8fcfd4c7d3747b0c44eb9b82fa4ee3167d5 Mon Sep 17 00:00:00 2001 From: Kiel Christofferson Date: Fri, 15 Nov 2013 16:13:32 -0500 Subject: Allow config command without root privileges. --- frontend/cli/lb | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'frontend') diff --git a/frontend/cli/lb b/frontend/cli/lb index 18bb9cdd2..63e46a9e0 100755 --- a/frontend/cli/lb +++ b/frontend/cli/lb @@ -18,13 +18,6 @@ DESCRIPTION="$(Echo 'utility to build live systems')" HELP="FIXME" USAGE="FIXME" -# Checking user account -if [ "$(id -u)" -ne "0" ] -then - Echo_error "need root privileges" - exit 1 -fi - case "${1}" in -h|--help) if [ -x "$(which man 2>/dev/null)" ] @@ -52,6 +45,16 @@ case "${1}" in ENV="" + if [ "${COMMAND}" != "config" ] + then + # Checking user account + if [ "$(id -u)" -ne "0" ] + then + Echo_error "need root privileges" + exit 1 + fi + fi + for _FILE in config/environment config/environment.binary do if [ -e "${_FILE}" ] -- cgit v1.2.3