use asknot-ng dir for git checkout and building whatcanidoforfedora.org site

This commit is contained in:
Kevin Fenzi 2017-10-10 19:17:17 +00:00
parent 7088130aaf
commit 0ca09d985d

View file

@ -1,14 +1,14 @@
#!/bin/bash
# Borrowed heavily from the syncStatic cronjob script.
if [ ! -d /srv/web/whatcanidoforfedora.org/.git ]
if [ ! -d /srv/web/asknot-ng/.git ]
then
/usr/bin/git clone -q \
https://github.com/fedora-infra/asknot-ng.git \
/srv/web/whatcanidoforfedora.org
/srv/web/asknot-ng
fi
cd /srv/web/whatcanidoforfedora.org
cd /srv/web/asknot-ng
/usr/bin/git clean -q -fdx || exit 1
/usr/bin/git reset -q --hard || exit 1