Re: How do create a user with a bashscript

Поиск
Список
Период
Сортировка
От Devrim GÜNDÜZ
Тема Re: How do create a user with a bashscript
Дата
Msg-id 1222147764.3461.19.camel@laptop.gunduz.org
обсуждение исходный текст
Ответ на How do create a user with a bashscript  ("A B" <gentosaker@gmail.com>)
Список pgsql-novice
On Fri, 2008-09-19 at 09:11 +0200, A B wrote:
> #!/bin/bash
> createuser  myuser
>
> but I want to supply a password on the command line, is that possible?
> The docs tells me no, but does anyone know of a workaround?

psql mydb -c "ALTER ROLE myrole WITH ENCRYPTED PASSWORD mypass"

could work, I think.
--
Devrim GÜNDÜZ, RHCE
devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
                   http://www.gunduz.org

Вложения

В списке pgsql-novice по дате отправления:

Предыдущее
От: "Sean Davis"
Дата:
Сообщение: Re: Moving data from one set of tables to another?
Следующее
От: "Wright, George"
Дата:
Сообщение: query executions