Redirect to user control panel

This commit is contained in:
Bob Mottram 2016-02-25 11:28:24 +00:00
parent b3a0655cc2
commit 5d4c4d27fa
1 changed files with 4 additions and 0 deletions

View File

@ -1732,6 +1732,10 @@ if [ ! -f $COMPLETION_FILE ]; then
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