Skip to content
Snippets Groups Projects
Commit 230acecf authored by Alberto LIVIO BECCARIA's avatar Alberto LIVIO BECCARIA
Browse files

Fixed boot script (no updated /local/examid)

parent 920fc78d
No related branches found
No related tags found
No related merge requests found
......@@ -266,13 +266,13 @@ start() {
# if the exam is already started, get examid from file
if [[ -f /local/examid ]]; then
EXAM_ID_PREV=`cat /local/examid`
# otherwise let's create the file with the current examid
else
echo "${EXAM_ID}" > /local/examid
fi
# different examid?
if [[ ${EXAM_ID} != ${EXAM_ID_PREV} ]]; then
# update the file with the current examid
echo "${EXAM_ID}" > /local/examid
# clean home dir if requested by the profile
touch /local/mk-homedir
fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment