Skip to content

Commit

Permalink
puppet: Fix PostgreSQL user to create PGroonga extension
Browse files Browse the repository at this point in the history
"root" user isn't a PostgreSQL administrator. "postgres" is a PostgreSQL
administrator.
  • Loading branch information
kou authored and timabbott committed Feb 8, 2017
1 parent 609082c commit a2d935a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion puppet/zulip/manifests/postgres_appdb_base.pp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@

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",
}
}
Expand Down

0 comments on commit a2d935a

Please sign in to comment.