Skip to content

Commit

Permalink
address problem identified by Zihua
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas-Ulrich committed May 22, 2024
1 parent 2968f3c commit fadfe81
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions setup_modules_Frontera_vnc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,16 @@ SHARED_PATH="/your/path/to/container/"
SIF_NAME="$HOME/my-training.sif"

if [ ! -f $SIF_NAME ]; then
if [ ! -f $SHARED_PATH/$SIF_NAME ]; then
if [ ! -f $SHARED_PATH/training_latest.sif ]; then
# load the image if no image exists in the shared directory
echo "MNMN: pull the appatainer image"
apptainer pull -F docker://seissol/training:hps-2024-frontera
apptainer pull -F docker://seissol/training:latest
echo "MNMN: create symlink to the shared directory"
ln -sf $SHARED_PATH/training_latest.sif $SIF_NAME
else
# create symlink to the shared directory
echo "MNMN: create symlink to the shared directory"
ln -s $SHARED_PATH/$SIF_NAME $SIF_NAME
ln -sf $SHARED_PATH/training_latest.sif $SIF_NAME
fi
fi

Expand Down

0 comments on commit fadfe81

Please sign in to comment.