1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2026-05-22 10:15:16 +02:00

Community yum package can be installed with --var=package=yum.

Like apt, the community yum package can now be installed instead of a user-specified package.
This commit is contained in:
David Steele
2019-06-27 14:39:11 -04:00
parent b0728c33db
commit c55009d0f9
+7 -2
View File
@@ -536,14 +536,19 @@
<exe-cmd-extra>-y 2>&amp;1</exe-cmd-extra>
</execute>
<execute if="{[os-type-is-centos]}" user="root" show="n">
<execute if="{[os-type-is-centos]} &amp;&amp; '{[package]}' ne 'yum'" user="root" show="n">
<exe-cmd>yum -y install {[pgbackrest-repo-path]}/{[package]}</exe-cmd>
<exe-cmd-extra>-y 2>&amp;1</exe-cmd-extra>
</execute>
<execute if="{[os-type-is-centos]}" user="root" skip="y">
<execute if="{[os-type-is-centos]} &amp;&amp; '{[package]}' ne 'yum'" user="root" skip="y">
<exe-cmd>yum install pgbackrest</exe-cmd>
</execute>
<execute if="{[os-type-is-centos]} &amp;&amp; '{[package]}' eq 'yum'" user="root">
<exe-cmd>yum install pgbackrest</exe-cmd>
<exe-cmd-extra>-y 2>&amp;1</exe-cmd-extra>
</execute>
</execute-list>
<execute-list if="'{[br-install-user]}' ne 'postgres'" host="{[br-install-host]}">