#!/bin/bash

. /usr/local/lib/labtool.shlib || echo 'Error: labtool.shlib not found!'
trap on_exit EXIT

# uncomment to enable debug mode
#DEBUG=true

USER=student
BACKEND=/usr/local/bin/gls-grade-securevnc-backend

check_root

check_host "desktop"

debug "* F: Calling up backend as ${USER}."
if su - $USER -c $BACKEND

then
    debug "* F: Grading complete."

else
    exit 1

fi

    
exit

