From e50aa4a928b8e473e888409d80ad1c5082458d69 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 25 Jul 2023 09:42:59 -0700 Subject: [PATCH] releng / sig_policy: fix mktemp call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mktemp needs X's in the name passed to it to apply it's random template to. Without that it just fails with: mktemp: too few X's in template ‘/tmp/sig_policy’ Signed-off-by: Kevin Fenzi --- roles/releng/templates/sig_policy.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/releng/templates/sig_policy.j2 b/roles/releng/templates/sig_policy.j2 index 402ec4fee0..21e9343627 100644 --- a/roles/releng/templates/sig_policy.j2 +++ b/roles/releng/templates/sig_policy.j2 @@ -1,4 +1,4 @@ # Runs the `sig_policy.py` script MAILTO=releng-cron@lists.fedoraproject.org PAGURE_API_TOKEN={{ fesco_sig_policy_src_token }} -30 9 * * 1 root TMPDIR=`mktemp -d /tmp/sig_policy` && chmod 755 $TMPDIR && cd $TMPDIR && git clone https://pagure.io/releng.git && cd releng/scripts/fesco/sig-policy && python sig_policy.py +30 9 * * 1 root TMPDIR=`mktemp -d /tmp/sig_policy.XXXXXXXXXX` && chmod 755 $TMPDIR && cd $TMPDIR && git clone https://pagure.io/releng.git && cd releng/scripts/fesco/sig-policy && python sig_policy.py