[no subject]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



function cleanlock()
{                   
    /bin/rm -f /var/lock/$1.lock
}                               


function quit()
{              
    echo $1
    if [ $2 ]
    then
        cleanlock $2
    fi
    exit 2
}

function newlock()
{
    if [ -f /var/lock/$1.lock ]
    then
        quit "Lockfile exists.. Remove /var/lock/$1.lock"
    else
        touch /var/lock/$1.lock
    fi
}

newlock docSync
if [ ! -d /srv/web/docs ]
then
	echo "/srv/web/docs missing"
	cd /srv/web
	git clone git://git.fedoraproject.org/git/docs/web.git docs
fi


cd /srv/web/docs
git reset --hard
git pull

/sbin/restorecon -R /srv/web/docs/
cleanlock docSync
_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux