Skip to content
Snippets Groups Projects
Commit 72ffe668 authored by alice grosch's avatar alice grosch
Browse files

Test cleanup

parent 822393c0
Branches
Tags
1 merge request!2restructure User Images
Pipeline #166158 passed
...@@ -97,6 +97,26 @@ load_modules () { ...@@ -97,6 +97,26 @@ load_modules () {
echo "$(date) - Load modules done" echo "$(date) - Load modules done"
} }
cleanup () {
echo "$(date) - Start cleanup."
mount | grep "/mnt/B2DROP" > /dev/null
EC=$?
if [[ $EC -eq 0 ]]; then
echo "$(date) - Unmounted /mnt/B2DROP."
else
echo "$(date) - B2DROP not mounted, do not unmount."
fi
mount | grep "/mnt/JUST_HOME" > /dev/null
EC=$?
if [[ $EC -eq 0 ]]; then
echo "$(date) - Unmounted /mnt/JUST_HOME."
else
echo "$(date) - JUST not mounted, do not unmount."
fi
echo "$(date) - Cleanup done."
}
start () { start () {
echo "$(date) - Start jupyterhub-singleuser ..." echo "$(date) - Start jupyterhub-singleuser ..."
timeout 30d jupyterhub-singleuser 2>${JUPYTER_LOG_DIR}/stderr 1>${JUPYTER_LOG_DIR}/stdout timeout 30d jupyterhub-singleuser 2>${JUPYTER_LOG_DIR}/stderr 1>${JUPYTER_LOG_DIR}/stdout
...@@ -109,3 +129,4 @@ load_modules ...@@ -109,3 +129,4 @@ load_modules
mount_b2drop mount_b2drop
mount_just mount_just
start start
cleanup
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment