mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 16:43:57 +00:00
puppet: Fix PostgreSQL user to create PGroonga extension
"root" user isn't a PostgreSQL administrator. "postgres" is a PostgreSQL administrator.
This commit is contained in:
@@ -90,7 +90,7 @@ class zulip::postgres_appdb_base {
|
||||
|
||||
exec{"create_pgroonga_extension":
|
||||
require => File["$pgroonga_setup_sql_path"],
|
||||
command => "bash -c 'cat $pgroonga_setup_sql_path | psql -v ON_ERROR_STOP=1 zulip && touch $pgroonga_setup_sql_path.applied'",
|
||||
command => "bash -c 'cat $pgroonga_setup_sql_path | su postgres -c \"psql -v ON_ERROR_STOP=1 zulip\" && touch $pgroonga_setup_sql_path.applied'",
|
||||
creates => "$pgroonga_setup_sql_path.applied",
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user