Skip to content

Commit

Permalink
test commit 5
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdallaAbdelhadi committed Dec 29, 2024
1 parent 70320c0 commit fca5fc3
Show file tree
Hide file tree
Showing 8 changed files with 134 additions and 0 deletions.
19 changes: 19 additions & 0 deletions output/docker-stacks-datascience-notebook/start-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,25 @@ local({
EOF
fi

# Check if the directory exists
if [ ! -d /home/$NB_USER/test ]; then
# Directory does not exist, create it
mkdir -p /home/$NB_USER/test
echo "Directory test created."
else
echo "Directory test already exists."
fi

DIR="/home/$NB_USER/.gnupg"

if [ -d "$DIR" ]; then
chmod 700 "$DIR"
echo "Permissions for $DIR set to 700."
else
echo "Directory $DIR does not exist."
fi


echo "--------------------starting jupyter--------------------"

/opt/conda/bin/jupyter server --notebook-dir=/home/${NB_USER} \
Expand Down
1 change: 1 addition & 0 deletions output/jupyterlab-cpu/start-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ else
echo "Directory $DIR does not exist."
fi


echo "--------------------starting jupyter--------------------"

/opt/conda/bin/jupyter server --notebook-dir=/home/${NB_USER} \
Expand Down
19 changes: 19 additions & 0 deletions output/jupyterlab-pytorch/start-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,25 @@ local({
EOF
fi

# Check if the directory exists
if [ ! -d /home/$NB_USER/test ]; then
# Directory does not exist, create it
mkdir -p /home/$NB_USER/test
echo "Directory test created."
else
echo "Directory test already exists."
fi

DIR="/home/$NB_USER/.gnupg"

if [ -d "$DIR" ]; then
chmod 700 "$DIR"
echo "Permissions for $DIR set to 700."
else
echo "Directory $DIR does not exist."
fi


echo "--------------------starting jupyter--------------------"

/opt/conda/bin/jupyter server --notebook-dir=/home/${NB_USER} \
Expand Down
19 changes: 19 additions & 0 deletions output/jupyterlab-tensorflow/start-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,25 @@ local({
EOF
fi

# Check if the directory exists
if [ ! -d /home/$NB_USER/test ]; then
# Directory does not exist, create it
mkdir -p /home/$NB_USER/test
echo "Directory test created."
else
echo "Directory test already exists."
fi

DIR="/home/$NB_USER/.gnupg"

if [ -d "$DIR" ]; then
chmod 700 "$DIR"
echo "Permissions for $DIR set to 700."
else
echo "Directory $DIR does not exist."
fi


echo "--------------------starting jupyter--------------------"

/opt/conda/bin/jupyter server --notebook-dir=/home/${NB_USER} \
Expand Down
19 changes: 19 additions & 0 deletions output/remote-desktop/start-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,25 @@ local({
EOF
fi

# Check if the directory exists
if [ ! -d /home/$NB_USER/test ]; then
# Directory does not exist, create it
mkdir -p /home/$NB_USER/test
echo "Directory test created."
else
echo "Directory test already exists."
fi

DIR="/home/$NB_USER/.gnupg"

if [ -d "$DIR" ]; then
chmod 700 "$DIR"
echo "Permissions for $DIR set to 700."
else
echo "Directory $DIR does not exist."
fi


echo "--------------------starting jupyter--------------------"

/opt/conda/bin/jupyter server --notebook-dir=/home/${NB_USER} \
Expand Down
19 changes: 19 additions & 0 deletions output/rstudio/start-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,25 @@ local({
EOF
fi

# Check if the directory exists
if [ ! -d /home/$NB_USER/test ]; then
# Directory does not exist, create it
mkdir -p /home/$NB_USER/test
echo "Directory test created."
else
echo "Directory test already exists."
fi

DIR="/home/$NB_USER/.gnupg"

if [ -d "$DIR" ]; then
chmod 700 "$DIR"
echo "Permissions for $DIR set to 700."
else
echo "Directory $DIR does not exist."
fi


echo "--------------------starting jupyter--------------------"

/opt/conda/bin/jupyter server --notebook-dir=/home/${NB_USER} \
Expand Down
19 changes: 19 additions & 0 deletions output/sas/start-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,25 @@ local({
EOF
fi

# Check if the directory exists
if [ ! -d /home/$NB_USER/test ]; then
# Directory does not exist, create it
mkdir -p /home/$NB_USER/test
echo "Directory test created."
else
echo "Directory test already exists."
fi

DIR="/home/$NB_USER/.gnupg"

if [ -d "$DIR" ]; then
chmod 700 "$DIR"
echo "Permissions for $DIR set to 700."
else
echo "Directory $DIR does not exist."
fi


echo "--------------------starting jupyter--------------------"

/opt/conda/bin/jupyter server --notebook-dir=/home/${NB_USER} \
Expand Down
19 changes: 19 additions & 0 deletions resources/common/start-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,25 @@ local({
EOF
fi

# Check if the directory exists
if [ ! -d /home/$NB_USER/test ]; then
# Directory does not exist, create it
mkdir -p /home/$NB_USER/test
echo "Directory test created."
else
echo "Directory test already exists."
fi

DIR="/home/$NB_USER/.gnupg"

if [ -d "$DIR" ]; then
chmod 700 "$DIR"
echo "Permissions for $DIR set to 700."
else
echo "Directory $DIR does not exist."
fi


echo "--------------------starting jupyter--------------------"

/opt/conda/bin/jupyter server --notebook-dir=/home/${NB_USER} \
Expand Down

0 comments on commit fca5fc3

Please sign in to comment.