Skip to content

Commit

Permalink
Merge pull request #1523 from mathbunnyru/asalikhov/fix_when_symlink_…
Browse files Browse the repository at this point in the history
…fails

Fail if creating symlink fails
  • Loading branch information
mathbunnyru committed Nov 10, 2021
2 parents 425794a + f8c281a commit 1b77523
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions base-notebook/start.sh
Expand Up @@ -95,12 +95,13 @@ if [ "$(id -u)" == 0 ] ; then
if cp -a /home/jovyan/. "/home/${NB_USER}/"; then
echo "Success!"
else
echo "Failed!"
echo "Failed to copy data from /home/jovyan to /home/${NB_USER}!"
echo "Attempting to symlink /home/jovyan to /home/${NB_USER}..."
if ln -s /home/jovyan "/home/${NB_USER}"; then
echo "Success!"
echo "Success creating symlink!"
else
echo "Failed!"
echo "Failed to create symlink!"
exit 1
fi
fi
fi
Expand Down

0 comments on commit 1b77523

Please sign in to comment.