proxies: ostree summary sync, use -f to mv

In f42 in some cases mv will prompt here to overwrite the old file.
We always want to replace it, so add a -f here.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2025-05-13 09:23:18 -07:00
parent 5bbb4f6550
commit 40bc0f3c98

View file

@ -1,4 +1,4 @@
MAILTO=""
*/15 * * * * root /usr/bin/curl -f https://kojipkgs.fedoraproject.org/ostree/repo/summary -o /srv/web/ostree/summary.new && mv /srv/web/ostree/summary.new /srv/web/ostree/summary
*/15 * * * * root /usr/bin/curl -f https://kojipkgs.fedoraproject.org/ostree/repo/summary -o /srv/web/ostree/summary.new && mv -f /srv/web/ostree/summary.new /srv/web/ostree/summary
MAILTO=""
*/15 * * * * root /usr/bin/curl -f https://kojipkgs.fedoraproject.org/compose/iot/repo/summary -o /srv/web/ostree/iot/summary.new && mv /srv/web/ostree/iot/summary.new /srv/web/ostree/iot/summary
*/15 * * * * root /usr/bin/curl -f https://kojipkgs.fedoraproject.org/compose/iot/repo/summary -o /srv/web/ostree/iot/summary.new && mv -f /srv/web/ostree/iot/summary.new /srv/web/ostree/iot/summary