-
Notifications
You must be signed in to change notification settings - Fork 3
/
run.sh
executable file
·23 lines (18 loc) · 842 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
echo "Copy notebooks"
if [ ! -d /home/jovyan/work/DIVAnd-Workshop ]; then
cp -R /data/Diva-Workshops-master/notebooks /home/jovyan/work/DIVAnd-Workshop
fi
if [ ! -d /home/jovyan/work/DIVAnd-Workshop/Adriatic/WOD/CTD ]; then
mkdir -p /home/jovyan/work/DIVAnd-Workshop/Adriatic/WOD
ln -s /data/Diva-Workshops-data/WOD/* /home/jovyan/work/DIVAnd-Workshop/Adriatic/WOD/
fi
# this is very slow and should not be necessary in most cases
# if test -n "$NB_UID"; then
# echo "Change ownership to user id $NB_UID"
# chown -R "$NB_UID":"$NB_GID" /home/jovyan/.local
# chown -R "$NB_UID":"$NB_GID" /home/jovyan/.julia
# chown -R "$NB_UID":"$NB_GID" /home/jovyan/work
# fi
echo "Executing /usr/local/bin/start-singleuser.sh"
exec /usr/local/bin/start-singleuser.sh --KernelSpecManager.ensure_native_kernel=False