-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
34 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
TAG=$1 | ||
PID_FILE=$HOME/.cvmfs-lock | ||
|
||
# lock this process - this is needed as only one process | ||
# should do a cvmfs transaction at any given time | ||
if [ -e $PID_FILE ]; then | ||
PID=$(cat $PID_FILE) | ||
while kill -0 $PID >/dev/null 2>&1; do | ||
sleep 30s | ||
done | ||
fi | ||
echo $$ >$PID_FILE | ||
|
||
cvmfs_server transaction xenon.opensciencegrid.org | ||
|
||
cd /cvmfs/xenon.opensciencegrid.org/releases/nT/ | ||
rm -rf $TAG | ||
tar xzf /tmp/$TAG.tar.gz | ||
cd /tmp | ||
|
||
cvmfs_server publish xenon.opensciencegrid.org | ||
|
||
# release lock | ||
rm $PID_FILE | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters