Skip to content

Commit

Permalink
Fix: Create apps directory during AiiDAlab startup script.
Browse files Browse the repository at this point in the history
Not entirely sure why this is needed since the directory should already
exist, but the startup fails without this.
  • Loading branch information
csadorf committed Sep 13, 2022
1 parent 84a9fb5 commit d009935
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stack/lab/before-notebook.d/60_prepare-aiidalab.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,16 @@ fi
# Install the home app.
if [ ! -e /home/${NB_USER}/apps/home ]; then
echo "Install home app."

# Ensure that the ~/apps directory exists.
mkdir -p /home/${NB_USER}/apps

# The home app is installed in system space and linked to from user space.
# That ensures that users are not inadvertently running the wrong version of
# the home app for a given system environment, but still makes it possible to
# manually install a specific version of the home app in between upgrades, e.g.,
# for development work, by simply replacing the link with a clone of the repository.

ln -s /opt/aiidalab-home /home/${NB_USER}/apps/home
elif [[ -d /home/${NB_USER}/apps/home && ! -L /home/${NB_USER}/apps/home ]]; then
# Backup an existing repository of the home app and replace with link to /opt/aiidalab-home.
Expand Down

0 comments on commit d009935

Please sign in to comment.