blob: e1073e02db6f7356d01e9e1adad221df34b03ce7 (
plain) (
tree)
|
|
#!/bin/bash
function gitclone {
git clone $*
if [ "$?" != 0 ]; then
sleep 1s
git clone $*
if [ "$?" != 0 ]; then
sleep 3s
git clone $*
fi
fi
}
function aptget_update {
apt-get update
if [ "$?" != 0 ]; then
sleep 1s
apt-get update
if [ "$?" != 0 ]; then
sleep 1s
apt-get update
fi
fi
}
function aptget_install {
apt-get -y -qq install $*
if [ "$?" != 0 ]; then
sleep 1s
apt-get -y -qq install $*
if [ "$?" != 0 ]; then
sleep 2s
apt-get -y -qq install $*
fi
fi
}
function clientdata_init {
mkdir shared
cd ..
ln -s clientdata client-data
}
|