Index: openacs-4/packages/acs-core-docs/www/xml/install-guide/upgrade.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/install-guide/upgrade.xml,v diff -u -r1.6.2.3 -r1.6.2.4 --- openacs-4/packages/acs-core-docs/www/xml/install-guide/upgrade.xml 29 Nov 2003 15:17:54 -0000 1.6.2.3 +++ openacs-4/packages/acs-core-docs/www/xml/install-guide/upgrade.xml 15 Dec 2003 14:18:48 -0000 1.6.2.4 @@ -125,16 +125,16 @@ make install exit In order for the OpenACS 4.6 OpenFTS Engine to use the OpenFTS 0.3.2 driver, we need some commands added to the database. - [root@localhost root]# su - nsadmin -[nsadmin@localhost dev]$ psql openacs-dev -f /usr/local/pgsql/share/contrib/openfts.sql + [root root]# su - nsadmin +[nsadmin dev]$ psql openacs-dev -f /usr/local/pgsql/share/contrib/openfts.sql CREATE CREATE -[nsadmin@localhost dev]$ psql openacs-dev -f /usr/local/src/postgresql-7.2.3/contrib/tsearch/tsearch.sql +[nsadmin dev]$ psql openacs-dev -f /usr/local/src/postgresql-7.2.3/contrib/tsearch/tsearch.sql BEGIN CREATE (~30 more lines) -[nsadmin@localhost dev]$ exit -[root@localhost root]# +[nsadmin dev]$ exit +[root root]# su - nsadmin psql openacs-dev -f /usr/local/pgsql/share/contrib/openfts.sql psql openacs-dev -f /usr/local/src/postgresql-7.2.3/contrib/tsearch/tsearch.sql @@ -146,7 +146,7 @@ Stop the server - [root@localhost root]# svc -d /service/openacs-dev + [root root]# svc -d /service/openacs-dev @@ -159,12 +159,12 @@ Upgrading files without CVS Unpack the tarball into a new directory and copy its contents on top of your working directory. - [root@localhost root]# su - nsadmin -[nsadmin@localhost aolserver]$ cd /web -[nsadmin@localhost web]$ tar xzf /tmp/openacs-4-6.tgz -[nsadmin@localhost web]$ cp -r openacs-4-6/* openacs-4 -[nsadmin@localhost openacs-upgrade]$ exit -[root@localhost root]# + [root root]# su - nsadmin +[nsadmin aolserver]$ cd /web +[nsadmin web]$ tar xzf /tmp/openacs-4-6.tgz +[nsadmin web]$ cp -r openacs-4-6/* openacs-4 +[nsadmin openacs-upgrade]$ exit +[root root]# su - nsadmin cd /web tar xzf /tmp/openacs-4-6.tgz @@ -179,18 +179,18 @@ Unpack the new files into a working directory. - [root@localhost root]# su - nsadmin -[nsadmin@localhost aolserver]$ cd /tmp -[nsadmin@localhost tmp]$ tar xzv openacs-4-6.tgz -[nsadmin@localhost tmp]$ cd openacs-4.6 + [root root]# su - nsadmin +[nsadmin aolserver]$ cd /tmp +[nsadmin tmp]$ tar xzv openacs-4-6.tgz +[nsadmin tmp]$ cd openacs-4.6 Import the new files into your cvs repository; where they match existing files, they will become the new version of the file. - [nsadmin@localhost openacs-4.6]$ cvs import -m "upgrade to OpenACS 4.6" openacs + [nsadmin openacs-4.6]$ cvs import -m "upgrade to OpenACS 4.6" openacs OpenACS openacs-4-6 Create a new directory as temporary working space to reconcile conflicts between the new files and your current work. The example uses the cvs keyword yesterday, making the assumption that you haven't checked in new code to your local tree in the last day. -[nsadmin@localhost openacs-4.6]$ cd /web -[nsadmin@localhost tmp]$ mkdir openacs-upgrade -[nsadmin@localhost tmp]$ cvs checkout -d openacs-upgrade -jOpenACS:yesterday -jOpenACS openacs > cvs.txt 2>&1 +[nsadmin openacs-4.6]$ cd /web +[nsadmin tmp]$ mkdir openacs-upgrade +[nsadmin tmp]$ cvs checkout -d openacs-upgrade -jOpenACS:yesterday -jOpenACS openacs > cvs.txt 2>&1 (CVS feedback here) su - nsadmin cd /tmp @@ -208,20 +208,20 @@ Once you've fixed any conflicts, commit the new code to your local tree. - [nsadmin@localhost tmp]$ cd openacs-upgrade -[nsadmin@localhost openacs-upgrade]$ cvs commit -m "Upgraded to 4.6" + [nsadmin tmp]$ cd openacs-upgrade +[nsadmin openacs-upgrade]$ cvs commit -m "Upgraded to 4.6" cd openacs-upgrade cvs commit -m "Upgraded to 4.6" Update your working tree with the new files. The CVS flags ensure that new directories are created and pruned directories destroyed. -[nsadmin@localhost openacs-upgrade]$ cd /web/openacs-dev -[nsadmin@localhost openacs-dev]$ cvs up -Pd +[nsadmin openacs-upgrade]$ cd /web/openacs-dev +[nsadmin openacs-dev]$ cvs up -Pd (CVS feedback) -[nsadmin@localhost openacs-dev]$ exit -[root@localhost root]# +[nsadmin openacs-dev]$ exit +[root root]# cd /web/openacs-dev cvs up -Pd exit @@ -234,7 +234,7 @@ Start the server - [root@localhost root]# svc -u /service/openacs-dev + [root root]# svc -u /service/openacs-dev @@ -261,7 +261,7 @@ When prompted, restart the server: - [root@localhost root]# restart-aolserver openacs-dev + [root root]# restart-aolserver openacs-dev Wait a minute, then browse to the package manager, http://yourserver/acs-admin/apm. @@ -292,7 +292,7 @@ Click Set Parameters - [root@localhost root]# restart-aolserver openacs-dev + [root root]# restart-aolserver openacs-dev Browse to http://yourserver/openfts