[services-cvs] CVS services/proc

CVS User miham root at tempel.bibl.u-szeged.hu
2004. Nov. 19., P, 21:50:29 CET


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

Modified Files:
	swinst.sh 
Log Message:
Modositott cuccosok..


--- /var/lib/cvs/services/proc/swinst.sh	2004/11/17 11:51:00	1.16
+++ /var/lib/cvs/services/proc/swinst.sh	2004/11/19 20:50:29	1.17
@@ -97,6 +97,7 @@
   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 '.';
@@ -104,9 +105,9 @@
   decho 2 -ne '.';
   /etc/init.d/postgresql restart
   decho 1 -ne '.';
-  su -c "initlocation PGDATA2" postgres
+  su - -c "PGDATA2=/var/swinst/postgres/data initlocation PGDATA2" postgres
   decho 1 -ne '.';
-  su -c "createdb -D 'PGDATA2' -E sql-ascii swinst" postgres
+  su - -c "PGDATA2=/var/swinst/postgres/data createdb -D 'PGDATA2' -E sql-ascii swinst" 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
@@ -116,7 +117,12 @@
   /etc/init.d/postgresql reload
   decho 1 -ne '. Ok!\n';
   /etc/init.d/apache restart
-  # TODO: swinst db letrehozasa es feltoltese a licenszinfokkal
+  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
+  decho 1 -ne '. Ok!\n'
+  # TODO: swinst db feltoltese a licenszinfokkal
   decho 1 -ne '. ';
   echo -ne "Ok"
 }





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