ansible/roles/fedora-docs/build/files/docs-sync

13 lines
277 B
Bash
Executable file

#!/bin/sh
if [ ! -d /srv/web/docs ]
then
echo "/srv/web/docs missing"
cd /srv/web
git clone git://git.fedorahosted.org/docs/web.git docs
fi
cd /srv/web/docs
git reset -q --hard
git pull -q