You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ma...@apache.org on 2013/06/18 07:48:59 UTC
svn commit: r1494028 -
/incubator/ambari/trunk/ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql
Author: mahadev
Date: Tue Jun 18 05:48:58 2013
New Revision: 1494028
URL: http://svn.apache.org/r1494028
Log:
AMBARI-2403. ambari-server setup should allow user to change database password
. (Dmitry Lysnichenko via mahadev)
Modified:
incubator/ambari/trunk/ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql
Modified: incubator/ambari/trunk/ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql?rev=1494028&r1=1494027&r2=1494028&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql (original)
+++ incubator/ambari/trunk/ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql Tue Jun 18 05:48:58 2013
@@ -19,6 +19,8 @@ CREATE DATABASE ambari;
\connect ambari;
+ALTER USER :username WITH ENCRYPTED PASSWORD :password;
+
CREATE ROLE :username LOGIN ENCRYPTED PASSWORD :password;
CREATE SCHEMA ambari