You've already forked pgbackrest
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:
@@ -536,14 +536,19 @@
|
||||
<exe-cmd-extra>-y 2>&1</exe-cmd-extra>
|
||||
</execute>
|
||||
|
||||
<execute if="{[os-type-is-centos]}" user="root" show="n">
|
||||
<execute if="{[os-type-is-centos]} && '{[package]}' ne 'yum'" user="root" show="n">
|
||||
<exe-cmd>yum -y install {[pgbackrest-repo-path]}/{[package]}</exe-cmd>
|
||||
<exe-cmd-extra>-y 2>&1</exe-cmd-extra>
|
||||
</execute>
|
||||
|
||||
<execute if="{[os-type-is-centos]}" user="root" skip="y">
|
||||
<execute if="{[os-type-is-centos]} && '{[package]}' ne 'yum'" user="root" skip="y">
|
||||
<exe-cmd>yum install pgbackrest</exe-cmd>
|
||||
</execute>
|
||||
|
||||
<execute if="{[os-type-is-centos]} && '{[package]}' eq 'yum'" user="root">
|
||||
<exe-cmd>yum install pgbackrest</exe-cmd>
|
||||
<exe-cmd-extra>-y 2>&1</exe-cmd-extra>
|
||||
</execute>
|
||||
</execute-list>
|
||||
|
||||
<execute-list if="'{[br-install-user]}' ne 'postgres'" host="{[br-install-host]}">
|
||||
|
||||
Reference in New Issue
Block a user