use asknot-ng dir for git checkout and building whatcanidoforfedora.org site
This commit is contained in:
parent
7088130aaf
commit
0ca09d985d
1 changed files with 3 additions and 3 deletions
|
@ -1,14 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Borrowed heavily from the syncStatic cronjob script.
|
# Borrowed heavily from the syncStatic cronjob script.
|
||||||
|
|
||||||
if [ ! -d /srv/web/whatcanidoforfedora.org/.git ]
|
if [ ! -d /srv/web/asknot-ng/.git ]
|
||||||
then
|
then
|
||||||
/usr/bin/git clone -q \
|
/usr/bin/git clone -q \
|
||||||
https://github.com/fedora-infra/asknot-ng.git \
|
https://github.com/fedora-infra/asknot-ng.git \
|
||||||
/srv/web/whatcanidoforfedora.org
|
/srv/web/asknot-ng
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd /srv/web/whatcanidoforfedora.org
|
cd /srv/web/asknot-ng
|
||||||
|
|
||||||
/usr/bin/git clean -q -fdx || exit 1
|
/usr/bin/git clean -q -fdx || exit 1
|
||||||
/usr/bin/git reset -q --hard || exit 1
|
/usr/bin/git reset -q --hard || exit 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue