From 5596d57be731fd086c9bee5f62112a3a338675fc Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Tue, 27 Oct 2020 15:08:43 +1100 Subject: [PATCH] reprepro: fixup script name Everything expects this to be called 'reprepro-mirror-update' (no .sh); rename the file. Change-Id: I8ec6ff4ed2afe6487959ef56dc0603f9d316d1a3 --- .../files/{reprepro-mirror-update.sh => reprepro-mirror-update} | 0 playbooks/roles/reprepro/tasks/main.yaml | 2 +- testinfra/test_mirror-update.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename playbooks/roles/reprepro/files/{reprepro-mirror-update.sh => reprepro-mirror-update} (100%) diff --git a/playbooks/roles/reprepro/files/reprepro-mirror-update.sh b/playbooks/roles/reprepro/files/reprepro-mirror-update similarity index 100% rename from playbooks/roles/reprepro/files/reprepro-mirror-update.sh rename to playbooks/roles/reprepro/files/reprepro-mirror-update diff --git a/playbooks/roles/reprepro/tasks/main.yaml b/playbooks/roles/reprepro/tasks/main.yaml index eda60e17b3..f2b54b4617 100644 --- a/playbooks/roles/reprepro/tasks/main.yaml +++ b/playbooks/roles/reprepro/tasks/main.yaml @@ -46,7 +46,7 @@ - name: Install mirror script copy: - src: reprepro-mirror-update.sh + src: reprepro-mirror-update dest: /usr/local/bin/ owner: root group: root diff --git a/testinfra/test_mirror-update.py b/testinfra/test_mirror-update.py index b7e07062af..84c315e64b 100644 --- a/testinfra/test_mirror-update.py +++ b/testinfra/test_mirror-update.py @@ -85,7 +85,7 @@ def test_repro_general_conf(host): assert f.exists assert f.is_directory - f = host.file('/usr/local/bin/reprepro-mirror-update.sh') + f = host.file('/usr/local/bin/reprepro-mirror-update') assert f.exists f = host.file('/etc/logrotate.d/reprepro')