Signed-off-by: Nico Schottelius <nico@wurzel.schottelius.org>
This commit is contained in:
Nico Schottelius 2015-05-11 21:23:15 +02:00
parent 29695f937e
commit 28d90e021f
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@
# along with cdist. If not, see <http://www.gnu.org/licenses/>.
#
if [ -f "$__object/parameter/password") ]; then
if [ -f "$__object/parameter/password" ]; then
user="$(cat "$__object/parameter/user")"
password="$(cat "$__object/parameter/password")"
echo "su - postgres -c \"psql -c \\\"ALTER ROLE $user WITH PASSWORD '$password'\\\"\""