From bec8a21ebcb0d91c2a94650350e6f1c7fe81504b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 25 Feb 2016 11:31:01 +0000 Subject: [PATCH] sequence --- src/freedombone-controlpanel | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/freedombone-controlpanel b/src/freedombone-controlpanel index 8d10f6c6..1f7ee3dd 100755 --- a/src/freedombone-controlpanel +++ b/src/freedombone-controlpanel @@ -1727,15 +1727,16 @@ function menu_top_level { done } +if [[ $USER != 'root' ]]; then + # show the user version of the control panel + exit $(freedombone-controlpanel-user) +fi + if [ ! -f $COMPLETION_FILE ]; then echo $'This command should only be run on an installed Freedombone system' exit 1 fi -if [[ $USER != 'root' ]]; then - # show the user version of the control panel - exit $(freedombone-controlpanel-user) -fi ADMIN_USER=$(cat $COMPLETION_FILE | grep "Admin user" | awk -F ':' '{print $2}') read_repo_servers menu_top_level