[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb: [807] branches/1.2
- Subject: SF.net SVN: ledger-smb: [807] branches/1.2
- From: ..hidden..
- Date: Fri, 09 Feb 2007 11:23:57 -0800
Revision: 807
http://svn.sourceforge.net/ledger-smb/?rev=807&view=rev
Author: einhverfr
Date: 2007-02-09 11:23:56 -0800 (Fri, 09 Feb 2007)
Log Message:
-----------
Updating UPGRADE docs and making sl2ls.sh script safe for many installation directories.
Modified Paths:
--------------
branches/1.2/UPGRADE
branches/1.2/sl2ls.sh
Modified: branches/1.2/UPGRADE
===================================================================
--- branches/1.2/UPGRADE 2007-02-09 18:35:01 UTC (rev 806)
+++ branches/1.2/UPGRADE 2007-02-09 19:23:56 UTC (rev 807)
@@ -13,6 +13,10 @@
notes. If you have not already done so, please read the release_notes file in
the doc/ directory.
+Before you begin, make sure that you are running at least PostgreSQL 8.0. If
+you are running a prior version, you will need to dump your data, upgrade the
+database server and restore the data before proceeding.
+
MANUAL UPGRADE:
===============================================================================
@@ -78,6 +82,8 @@
7) Copy the files from the LedgerSMB tarball over your existing installation.
8) Delete the users directory.
+9) Edit the ledger-smb.conf file as appropriate.
+
Congratulations, you have manually upgraded to LedgerSMB 1.2.
TODO: Add upgrade.pl script and automate the above process.
Modified: branches/1.2/sl2ls.sh
===================================================================
--- branches/1.2/sl2ls.sh 2007-02-09 18:35:01 UTC (rev 806)
+++ branches/1.2/sl2ls.sh 2007-02-09 19:23:56 UTC (rev 807)
@@ -12,7 +12,10 @@
LSDB=lsmbprod
LSOWN=ledgersmb
+# Installation directory
+IDIR=`pwd`
+
psql template1 -c "DROP DATABASE ${LSDB};"
pg_dump ${SLDB} > sl2ls.sql
@@ -22,7 +25,7 @@
createdb -O ${LSOWN} ${LSDB}
-psql ${LSDB} ${LSOWN} -c "\i /usr/local/ledger-smb/sql/Pg-central.sql"
+psql ${LSDB} ${LSOWN} -c "\i ${IDIR}/sql/Pg-central.sql"
psql template1 -c "ALTER USER ${LSOWN} WITH superuser;"
@@ -30,7 +33,7 @@
psql template1 -c "ALTER USER ${LSOWN} WITH nosuperuser;"
-cd /usr/local/ledger-smb/sql/legacy/
+cd ${IDIR}/sql/legacy/
psql ${LSDB} ${LSOWN} -c "SELECT version FROM defaults;"
@@ -54,7 +57,7 @@
psql ${LSDB} ${LSOWN} -c "update users_conf set password = md5('apasswrd');"
-cd /usr/local/ledger-smb
+cd ${IDIR}
./import_members.pl users/members
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.