Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 31 lines (26 sloc) 0.566 kb
#!/bin/bash
backf=`mktemp`
rm $backf
cd $CLOUD_CLIENT_HOME
./bin/grid-proxy-init.sh
./bin/cloud-client.sh --transfer --sourcefile /etc/group
if [ $? -ne 0 ]; then
rm $backf
echo "upload failed"
exit 1
fi
./bin/cloud-client.sh --download --name group --localfile $backf
if [ $? -ne 0 ]; then
rm $backf
echo "download failed"
exit 1
fi
diff $backf /etc/group
if [ $? -ne 0 ]; then
rm $backf
echo "diff failed, file corrupted in transfer"
exit 1
fi
./bin/cloud-client.sh --delete --name group --localfile $backf
rm $backf
exit 0
Jump to Line
Something went wrong with that request. Please try again.