/[libdata]/trunk/my2pg/install.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/my2pg/install.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 73 - (show annotations)
Thu Mar 18 21:27:37 2004 UTC (20 years, 1 month ago) by dpavlin
File MIME type: application/x-sh
File size: 421 byte(s)
sync trunk to HEAD of pear-db (without changes specific to PEAR which will be dropped)

1 #!/bin/sh
2
3 dropdb libdata || (
4 sudo /etc/init.d/apache restart
5 dropdb libdata || exit;
6 )
7 createdb libdata
8
9 psql libdata < libdata.pgsql
10 psql libdata < libstats.pgsql
11 psql libdata < libsession.pgsql
12
13 # reset all passwords to libdata (password file format isn't compatibile
14 # because MySQL is using password function and we are using md5 hash
15 psql libdata -c "update staff set password=md5('libdata') where staff_id > 1"

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26