Alex:
> What user are you running it as?
> The reason that the sudo -u is there is because the scripts
> run as root but root does not have access to postgres only user does.
> 
> So you could try:
> sudo su user
> run commands
> exit (can you do exit in a script like that?)

why not just like in install_posgis.sh?

USER_NAME=user
sudo -u postgres createuser --superuser $USER_NAME


?,
Hamish


      
_______________________________________________
Live-demo mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/live-demo
http://wiki.osgeo.org/wiki/Live_GIS_Disc

Reply via email to