ELN cron: Fix incorrect chdir ordering

We can't change branches until we're actually inside the repo directory.

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
Stephen Gallagher 2024-09-09 15:17:43 -04:00
parent d2920ad85d
commit 5cfb5377ef

View file

@ -1,3 +1,3 @@
# ELN compose
MAILTO=releng-cron@lists.fedoraproject.org
0 3,15,18,21 * * * root touch /tmp/fedora-compose-eln && TMPDIR=`mktemp -d /tmp/eln.XXXXXX` && chmod 755 $TMPDIR && cd $TMPDIR && git clone https://pagure.io/pungi-fedora.git && git checkout eln && cd pungi-fedora && /usr/local/bin/lock-wrapper eln-compose "LANG=en_US.UTF-8 ./eln-nightly.sh" && sudo -u ftpsync /usr/local/bin/update-fullfiletimelist -l /pub/fedora/update-fullfiletimelist.lock -t /pub eln && rm /tmp/fedora-compose-eln
0 3,15,18,21 * * * root touch /tmp/fedora-compose-eln && TMPDIR=`mktemp -d /tmp/eln.XXXXXX` && chmod 755 $TMPDIR && cd $TMPDIR && git clone https://pagure.io/pungi-fedora.git && cd pungi-fedora && git checkout eln && /usr/local/bin/lock-wrapper eln-compose "LANG=en_US.UTF-8 ./eln-nightly.sh" && sudo -u ftpsync /usr/local/bin/update-fullfiletimelist -l /pub/fedora/update-fullfiletimelist.lock -t /pub eln && rm /tmp/fedora-compose-eln