Bob Mottram 9 anni fa
parent
commit
bec8a21ebc
1 ha cambiato i file con 5 aggiunte e 4 eliminazioni
  1. 5
    4
      src/freedombone-controlpanel

+ 5
- 4
src/freedombone-controlpanel Vedi File

@@ -1727,15 +1727,16 @@ function menu_top_level {
1727 1727
     done
1728 1728
 }
1729 1729
 
1730
+if [[ $USER != 'root' ]]; then
1731
+    # show the user version of the control panel
1732
+    exit $(freedombone-controlpanel-user)
1733
+fi
1734
+
1730 1735
 if [ ! -f $COMPLETION_FILE ]; then
1731 1736
     echo $'This command should only be run on an installed Freedombone system'
1732 1737
     exit 1
1733 1738
 fi
1734 1739
 
1735
-if [[ $USER != 'root' ]]; then
1736
-    # show the user version of the control panel
1737
-    exit $(freedombone-controlpanel-user)
1738
-fi
1739 1740
 ADMIN_USER=$(cat $COMPLETION_FILE | grep "Admin user" | awk -F ':' '{print $2}')
1740 1741
 read_repo_servers
1741 1742
 menu_top_level