Skip to content

Commit

Permalink
Add postgresql-contrib installation
Browse files Browse the repository at this point in the history
postgresql-contrib provides PostgreSQL pg_trgm extension that is
used in latest Bacula versions (15.x)
  • Loading branch information
ganiuszka committed Dec 12, 2024
1 parent 5eb8fa7 commit 52bad98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Web/Modules/OSProfileConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class OSProfileConfig extends ConfigFileModule
public const DEF_CATALOG = [
'rpm' => [
'postgresql' => [
'packages_cat_install' => '/usr/bin/dnf -y install postgresql-server postgresql bacula-director',
'packages_cat_install' => '/usr/bin/dnf -y install postgresql-server postgresql-contrib postgresql bacula-director',
'packages_cat_upgrade' => '/usr/bin/dnf -y update postgresql-server postgresql',
'packages_cat_remove' => '/usr/bin/dnf -y remove postgresql-server postgresql',
'packages_cat_info' => '/usr/bin/dnf list installed postgresql-server postgresql',
Expand All @@ -76,7 +76,7 @@ class OSProfileConfig extends ConfigFileModule
],
'deb' => [
'postgresql' => [
'packages_cat_install' => "/usr/bin/sh -c DEBIAN_FRONTEND=noninteractive\ /usr/bin/apt\ -y\ install\ postgresql\ postgresql-client\ dbconfig-pgsql\ bacula-director",
'packages_cat_install' => "/usr/bin/sh -c DEBIAN_FRONTEND=noninteractive\ /usr/bin/apt\ -y\ install\ postgresql\ postgresql-contrib\ postgresql-client\ dbconfig-pgsql\ bacula-director",
'packages_cat_upgrade' => '/usr/bin/apt -y install --only-upgrade postgresql postgresql-client',
'packages_cat_remove' => '/usr/bin/apt -y remove --purge postgresql postgresql-client',
'packages_cat_info' => '/usr/bin/dpkg -l postgresql postgresql-client',
Expand Down

0 comments on commit 52bad98

Please sign in to comment.