[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: postgresql



> It must be waiting for you to type in the postgres user's password.
>
> While the postinst is running, pg_hba.conf is supposed to be temporarily
> replaced so as to avoid any such problems:
>
>   (
>   # this is in a sub-shell to limit the effect of the cd
>      cd /etc/postgresql
>      cp pg_hba.conf $PG_HBA_TEMP
>      echo "local all trust" >pg_hba.conf
>   )
>   # make sure the file is restored when the script exits
>   trapcmd=`trap -p 0`
>   [ -n "$trapcmd" ] && trapcmd="$trapcmd; "
>   trapcmd="${trapcmd}cp $PG_HBA_TEMP /etc/postgresql/pg_hba.conf; rm
> $PG_HBA_TEMP"
>   trap "$trapcmd" 0

so, I manually changed pg_hba.conf to "local all trust".
than I run dpkg -i postgres...
finally, I cp'ed pg_hba.conf back and restarted postgres, it looks, it
works. thank you.


> Was there anything in the output that you snipped to indicate that this
> failed?

no, it just did nothing (well, it was probably waiting for passwords)

bye, MS



Reply to: