[Pkg-sql-ledger-commit] r518 - ledger-smb/trunk/debian

pkg-sql-ledger-commit-owner at lists.alioth.debian.org pkg-sql-ledger-commit-owner at lists.alioth.debian.org
Wed Apr 18 19:25:44 UTC 2012


Author: jame-guest
Date: 2012-04-18 19:25:44 +0000 (Wed, 18 Apr 2012)
New Revision: 518

Modified:
   ledger-smb/trunk/debian/README.Debian
Log:
Rewrite LedgerSMB README.Debian, including database related information.

Modified: ledger-smb/trunk/debian/README.Debian
===================================================================
--- ledger-smb/trunk/debian/README.Debian	2012-04-18 14:48:04 UTC (rev 517)
+++ ledger-smb/trunk/debian/README.Debian	2012-04-18 19:25:44 UTC (rev 518)
@@ -2,6 +2,7 @@
 --------------------
 
 Optional Perl modules
+=====================
 
     Net::TCLink              [Support for TrustCommerce credit card processing]
     Parse::RecDescent        [Support for the *experimental* scripting engine]
@@ -9,8 +10,8 @@
     OpenOffice::OODoc        [Support for OpenOffice output]
     Excel::Template::Plus    [Support for Excel output]
 
-    The credit card processing support for TrustCommerce is available
-    repository as libnet-tclink-perl if not already installed:
+    The credit card processing support for TrustCommerce is available as
+    the package libnet-tclink-perl if not already installed:
 
     The Open Office output support is available as libopenoffice-oodoc-perl if
     it is not already installed.
@@ -20,58 +21,56 @@
 
     If the libtemplate-plugin-latex-perl package needed for the PDF/Postscript
     output option is not available, then if you want to use that option you
-    will need to download the module Template::Plugin::Latex from CPAN.
+    will need to download and install the module Template::Plugin::Latex from
+    CPAN.
 
     Please note that the PDF/Postscript module depends on the TeX/LaTeX
     package which is available as texlive-latex-recommended.
 
     If the libexcel-template-plus-perl package needed for the Excel output
     option is not available, then if you want to use that option you will
-    need to download Excel::Template::Plus module from CPAN.
+    need to download and install Excel::Template::Plus module from CPAN.
 
 
 Initializing a company database
+===============================
 
-    LedgerSMB 1.3 stores data for each company in a separate "database".  A
-    database is a PostgreSQL concept for grouping tables, indexes, etc.
-
-    Each company database must be named.  This name is essentially the system
+    LedgerSMB 1.3 stores data for each company in a separate "database". A
+    database is a PostgreSQL concept for grouping tables, indexes, etc. Each
+    company database must be named.  This name is essentially the system
     identifier within PostgreSQL for the company's dataset.  The name for the
-    company database can only contain letters, digits and underscores.
-    Additionally, it must start with a letter.  Company database names are
-    case insensitive, meaning you can't create two separate company databases
-    called 'Ledgersmb' and 'ledgersmb'.
+    company database can only contain letters, digits and underscores, and
+    it must start with a letter.  Company database names are case insensitive,
+    meaning you can't create two separate company databases called 'Ledgersmb'
+    and 'ledgersmb'.
 
-    One way you can create databases fairly easily is by directing your web
-    browser to the setup.pl script at your installed ledgersmb directory. So
-    if the base URL is http://localhost/ledgersmb/, you can access the database
-    setup and upgrade script at http://localhost/ledgersmb/setup.pl.  This is
-    very different from the approaches taken by LedgerSMB 1.2.x and earlier and
-    SQL-Ledger, but rather forms a wizard to walk you through the process.
+    One way that company databases can be created fairly easily is by directing
+    your web browser to the setup.pl script, which by default can be accessed at 
+    http://localhost/ledgersmb/setup.pl. This is very different from approaches
+    taken by LedgerSMB 1.2.x and SQL-Ledger, but rather forms a wizard to walk
+    you through the process of creating company databases and initial users for
+    those databases.
 
-    Please note that the setup.pl file assumes that LedgerSMB is already
-    configured to be able to access the database and locate the relevant
-    PostgreSQL contrib scripts. In particular, you must have the contrib_dir
-    directive set to point to those scripts properly in your ledgersmb.conf
-    before you begin.  You should also know the user and password for a
-    LedgerSMB database admin user which has the access to create users and
-    databases. The standard name for this user is ledgersmb and is assumed to
-    have the following access: SUPERUSER LOGIN NOINHERIT. (If this was not
-    configured at the time of the package installation, the ledgersmb user
-    can be added by using the standard postgresql database tools.) 
+    The standard database superuser used in the setup.pl script has the name
+    'ledgersmb'. If it is not created during the package configuration,
+    it can be created using the following sql statement:
+    
+CREATE ROLE ledgersmb WITH SUPERUSER LOGIN NOINHERIT ENCRYPTED PASSWORD 'password';
 
-    If you are upgrading from 1.2, your 1.2 tables will be moved to schema
-    lsmb12. Please keep this schema for some months. Updates which need this
-    schema may still be necessary.
+    Besides assuming that a database superuser is known, the setup.pl script
+    also assumes that the contrib_dir directive is already set correctly in
+    /etc/ledgersmb/ledgersmb.conf for the location of the PostgreSQL contrib
+    scripts. For v8.4 it would be /usr/share/postresql/8.4/contrib; or for
+    v9.1 that would be /usr/share/postgresql/9.1/extension.
+    
 
+Manual addition of a company database
+=====================================
 
-Manual configuration
-====================
-
     If you want to perform the installation of the company database completely
-    manually, you should consult the 'prepare-company-database.sh' script that
-    is available in the /usr/share/ledgersmb/tools/ directory as the authorative
-    documentation of the steps to perform.
+    manually, you should consult the 'prepare-company-database.sh' or the
+    'dbsetup.pl' scripts which are available in the /usr/share/ledgersmb/tools/
+    directory as the authorative documentation of the steps to perform.
 
 
 Company database removal
@@ -84,4 +83,4 @@
 
 
 
- -- Robert James Clay <jame at rocasa.us>  Tue, 10 Apr 2012 13:40:37 -0500
+ -- Robert James Clay <jame at rocasa.us>  Wed, 18 Apr 2012 15:24:06 -0500




More information about the Pkg-sql-ledger-commit mailing list