Implement home exam server.
This commit is contained in:
parent
147fddc772
commit
f4f0795e80
10 changed files with 248 additions and 0 deletions
12
roles/exam_homes/files/mkDownloads
Executable file
12
roles/exam_homes/files/mkDownloads
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/bash
|
||||
#
|
||||
# Prepare Downloads directory.
|
||||
|
||||
set -eu
|
||||
|
||||
HDIRS='/home/'
|
||||
|
||||
if [[ ! -d "$HDIRS/$PAM_USER/Downloads" ]] && [[ ! "$PAM_USER" =~ ^L_ ]] && \
|
||||
[[ ! "$PAM_USER" =~ ansible ]] ; then
|
||||
mkdir --mode=0777 "$HDIRS/$PAM_USER/Downloads"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue