This commit is contained in:
Bob Mottram 2016-02-25 11:31:01 +00:00
parent 5d4c4d27fa
commit bec8a21ebc
1 changed files with 5 additions and 4 deletions

View File

@ -1727,15 +1727,16 @@ function menu_top_level {
done done
} }
if [[ $USER != 'root' ]]; then
# show the user version of the control panel
exit $(freedombone-controlpanel-user)
fi
if [ ! -f $COMPLETION_FILE ]; then if [ ! -f $COMPLETION_FILE ]; then
echo $'This command should only be run on an installed Freedombone system' echo $'This command should only be run on an installed Freedombone system'
exit 1 exit 1
fi 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}') ADMIN_USER=$(cat $COMPLETION_FILE | grep "Admin user" | awk -F ':' '{print $2}')
read_repo_servers read_repo_servers
menu_top_level menu_top_level