Skip to content

Commit 357e758

Browse files
authored
Merge pull request #995 from stevenstetzler/stevenstetzler-patch-symlink
Fall back on symlink if mv fails
2 parents 437f1ef + 56e54a7 commit 357e758

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base-notebook/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if [ $(id -u) == 0 ] ; then
6666
# (it could be mounted, and we shouldn't create it if it already exists)
6767
if [[ ! -e "/home/$NB_USER" ]]; then
6868
echo "Relocating home dir to /home/$NB_USER"
69-
mv /home/jovyan "/home/$NB_USER"
69+
mv /home/jovyan "/home/$NB_USER" || ln -s /home/jovyan "/home/$NB_USER"
7070
fi
7171
# if workdir is in /home/jovyan, cd to /home/$NB_USER
7272
if [[ "$PWD/" == "/home/jovyan/"* ]]; then

0 commit comments

Comments
 (0)