Skip to content

Commit

Permalink
test untar home
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Sep 20, 2024
1 parent 47b8526 commit 9999b57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion before-notebook.d/00_untar-home.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ set -eux

home="/home/${NB_USER}"

ls -lrta "$home"
# Untar home archive file to restore home directory if it is empty
if [ ! -e ${home}/.FLAG_HOME_INITIALIZED ]; then
if [[ ! -f $HOME_TAR ]]; then
Expand All @@ -20,7 +21,7 @@ if [ ! -e ${home}/.FLAG_HOME_INITIALIZED ]; then
echo "Copying directory '$QE_APP_FOLDER' to '$AIIDALAB_APPS'"
cp -r "$QE_APP_FOLDER" "$AIIDALAB_APPS"
else
echo "$home folder is not empty!"
echo "$home folder is initialized!"
ls -lrta "$home"
fi
set +eux

0 comments on commit 9999b57

Please sign in to comment.