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.8 -r1.6.2.9 --- openacs-4/packages/acs-core-docs/www/xml/install-guide/upgrade.xml 16 Dec 2003 13:58:43 -0000 1.6.2.8 +++ openacs-4/packages/acs-core-docs/www/xml/install-guide/upgrade.xml 18 Dec 2003 10:02:20 -0000 1.6.2.9 @@ -166,19 +166,67 @@ Upgrading OpenACS 4.6.3 to 5.0 - Current working notes in Forum OpenACS Development: 4.6.3 upgrade to 5-HEAD: final results. + +pg_dump mydb > mydb.dmp + +If you are also upgrading from postgresql 7.2 to postgresql 7.3: +From openacs 5.0 + +/openacs-5/bin/pg_7.2to7.3_upgrade_helper.pl mydb.dmp mydb-new.dmp /path/to/openacs-4-install + + * Reload mydb-new.dmp into postgresql 7.3. + * psql -f /openacs-5/packages/acs-kernel/sql/postgresql/postgresql.sql mydb + * Load acs-kernel sql upgrade scripts from the previous openacs version. Be sure to load 5.0d* scripts before 5.0.0b* scripts. + * Load acs-service-contract sql upgrade scripts + * Load acs-authentication data model + psql -f openacs-5/packages/acs-authentication/sql/postgresql/acs-authentication-create.sql mydb + * Load acs-lang data model + psql -f openacs-5/packages/acs-lang/sql/postgresql/acs-lang-create.sql mydb + +Next create in openacs-5/tcl/ zzz-postload.tcl containing + +if {![apm_package_installed_p acs-lang]} { + + apm_package_install -enable -mount_path acs-lang [acs_root_dir]/packages/acs-lang/acs-lang.info + + lang::catalog::import -locales [list "en_US"] + +} + + +if {![apm_package_installed_p acs-authentication]} { + + apm_package_install -enable [acs_root_dir]/packages/acs-authentication/acs-authentication.info + + apm_parameter_register "UsePasswordWidgetForUsername" \ + "Should we hide what the user types in the username + field, the way we do with the password field? Set + this to 1 if you are us ing sensitive information + such as social security number for username." \ + acs-kernel 0 number \ + security 1 1 + parameter::set_value -package_id [ad_acs_kernel_id] -parameter UsePasswordWidgetForUsername -value 0 + +} + +Cross fingers. + +If you can login, visit /acs-admin/apm and upgrade acs-kernel, acs-service-contract and uncheck the data model scripts. Restart. If everything is still working, make another backup of the database. Then upgrade the rest of your packages through the APM. + + +See also this forum post: Forum OpenACS Development: 4.6.3 upgrade to 5-HEAD: final results. Upgrading the OpenACS files OpenACS is distributed as a collection of files, available as one big tarball, via CVS, and via automatic download from within the APM. Upgrades work by first changing the file system (via any of the previous methods), and then using the APM to scan the file system, find upgrade scripts, and execute them. This section describes how to upgrade the file system. Starting with OpenACS 5.0, this section can generally be skipped because the OpenACS APM can directly download new files from the openacs.org repository. - If you are using CVS, you will unpack the OpenACS 4.6 tarball into a working directory and then import that directory into cvs. If you have changed files in the core packages, cvs will attempt to merge your changes. You may have to manually merge some conflicts. When that's finished, you can update your normal development checkout directory and the new files will appear. If you aren't using CVS, you can unpack the tarball on top of your existing tree, but any customizations you've made to the kernel or core packages will be erased. + Many OpenACS site developers operate their own CVS repository to keep track of changes from the release OpenACS code. This part describes how to import the latest OpenACS version into your own repository. If you are using CVS, you will unpack the OpenACS 4.6 tarball into a working directory and then import that directory into cvs. If you have changed files in the core packages, cvs will attempt to merge your changes. You may have to manually merge some conflicts. When that's finished, you can update your normal development checkout directory and the new files will appear. If you aren't using CVS, you can unpack the tarball on top of your existing tree, but any customizations you've made to the kernel or core packages will be erased. - Upgrading files without CVS + Upgrading files for a site which is not in a CVS repository Unpack the tarball into a new directory and copy its contents on top of your working directory. [root root]# su - service0 @@ -195,7 +243,7 @@ - Upgrading files with CVS + Upgrading files for a site which is in a CVS repository