Skip to content

Commit

Permalink
Update startup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbie1977 authored Aug 8, 2024
1 parent 31917f1 commit b78500b
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions scripts/startup.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
#!/bin/bash

TIMEOUT_DURATION=30
DELAY_DURATION=50

# Function to perform git pulls with timeout and delay
perform_git_pulls() {
for folder in $(find / -type d -name ".git"); do
# Perform the git pull with a timeout
timeout $TIMEOUT_DURATION git --git-dir="$folder" pull || :
# Wait for the specified delay duration
sleep $DELAY_DURATION
done
}

# Run the perform_git_pulls function as a subprocess
(perform_git_pulls &)
for folder in $(find /opt/ | grep '/\.git$') ; do echo $folder; cd $folder/../; git pull || : ; cd ..; done;

/root/anaconda3/bin/jupyter lab --ip='*' --NotebookApp.password="${JUPYPASS}" --no-browser --port 80 --allow-root

0 comments on commit b78500b

Please sign in to comment.