[services-cvs] CVS services/proc

CVS User miham root at tempel.bibl.u-szeged.hu
2004. Nov. 19., P, 22:49:27 CET


Update of /var/lib/cvs/services/proc
In directory tempel:/tmp/cvs-serv27691/proc

Modified Files:
	swinst.sh 
Log Message:
Nah, ujabb adag modositas:
* www-data postgres-user jelszotlan
* letrehozzuk az adatbazis-strukturat is
* aktualizalt pg_hba.conf


--- /var/lib/cvs/services/proc/swinst.sh	2004/11/19 20:50:29	1.17
+++ /var/lib/cvs/services/proc/swinst.sh	2004/11/19 21:49:26	1.18
@@ -97,17 +97,18 @@
   download_config "http://androm.biblserv.intra/swimage/services/etc/swinst/postgres/postgresql.env-patch" "/tmp/psql.env-patch"
   decho 2 -ne '.';
   patch -p0 </tmp/psql.env-patch
-  ## TODO /etc/init.d/postgres patchelese (PGDATA2)
   decho 2 -ne '.';
   rm -f /tmp/psql.env-patch
   decho 2 -ne '.';
   chown -R postgres.postgres /var/swinst/postgres
   decho 2 -ne '.';
   /etc/init.d/postgresql restart
+#  decho 1 -ne '.';
+#  su - -c "PGDATA2=/var/swinst/postgres/data initlocation PGDATA2" postgres
   decho 1 -ne '.';
-  su - -c "PGDATA2=/var/swinst/postgres/data initlocation PGDATA2" postgres
+  su - -c "createdb -E sql-ascii swinst" postgres
   decho 1 -ne '.';
-  su - -c "PGDATA2=/var/swinst/postgres/data createdb -D 'PGDATA2' -E sql-ascii swinst" postgres
+  su - -c "createuser -A -D www-data" postgres
   decho 1 -ne '.';
   download_config "http://androm.biblserv.intra/swimage/services/etc/swinst/postgres/pg_hba.conf-patch" "/tmp/pg_hba.conf-patch"
   patch -p0 </tmp/pg_hba.conf-patch
@@ -120,7 +121,7 @@
   decho 1 -ne "Creating DB structures.."
   download_config "http://androm.biblserv.intra/swimage/services/etc/swinst/postgres/swinst_create.sql" "/tmp/swinst_create.sql"
   decho 1 -ne "."
-  psql swinst </tmp/swinst_create.sql
+  psql -q swinst www-data </tmp/swinst_create.sql
   decho 1 -ne '. Ok!\n'
   # TODO: swinst db feltoltese a licenszinfokkal
   decho 1 -ne '. ';





További információk a(z) Services-cvs levelezőlistáról