Gitlab is now using https://gitlab.lcsb.uni.lu as it's primary address. Please update your bookmarks. FAQ.

Commit 38565381 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

add defaults for psql command

parent a15be20f
......@@ -86,5 +86,12 @@ ln minerva-scripts/server/backup.sh /etc/cron.daily/minerva
#create .pgpass for later db management
echo "localhost:5432:map_viewer:map_viewer:123qweasdzxc" > .pgpass
echo "127.0.0.1:5432:map_viewer:map_viewer:123qweasdzxc" > .pgpass
chmod 0600 .pgpass
chown $USER .pgpass
#define default hostname and user for 'psql' command
echo >>.bashrc
echo "export PGUSER=map_viewer" >>.bashrc
echo "export PGHOST=127.0.0.1" >>.bashrc
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment