NAME

App::LedgerSMB::Admin - Easily Manage LedgerSMB Installations

VERSION

Version 0.08

SYNOPSIS

This module provides the basic routines for managing multiple major versions of LedgerSMB through a consistent toolkit.

It contains basically two components:

command line scripts
libraries for writing management programs

BUNDLED CLI PROGRAMS

lsmb_reload

Due to improper errors, this currently does not work properly with LedgerSMB 1.3. It is expected that it will following the LedgerSMB 1.3.45 release (forthcoming).

The lsmb_reload application provides a command line tool for upgrading or rebuilding stored procedures and permissions of a LedgerSMB 1.3 or 1.4 database.

Due to shortcomings in error handling it does not work for LedgerSMB 1.3.44 and below.

The program supports UNIX sockets as well as TCP/IP for connecting to the LedgerSMB database, and all aspects of the database connection may be controlled through the same environment variables as any other libpq program.

The following options are supported:

--all                    Reload All Databases
--help                   Print this message and exit
--host hostname          Database Host
--path13 /example/path   Path to LedgerSMB 1.3 installation
--path14 /example/path2  Path to LedgerSMB 1.4 installation
--port 5432              Database Poart
--dbname database        Reload the specified db, overridden by --all
--username postgres      Database Superuser to Log In As
--prompt-password        Prompt for Password (can use PGPASSWORD instead)

lsmb_createdb

Due to improper errors, this currently does not work properly with LedgerSMB 1.3. It is expected that it will following the LedgerSMB 1.3.45 release (forthcoming).

The lsmb_reload application provides a command line tool for upgrading or rebuilding stored procedures and permissions of a LedgerSMB 1.3 or 1.4 database.

--help                   Print this message and exit
--host hostname          Database Host
--path /example/path     Path to LedgerSMB installation (required)
--chart us/chart/General Chart of Accounts path (relative to sql)
--gifi  ca/gifi/General  Path to GIFI
--port 5432              Database Poart
--dbname database        Create db with the following name (required)
--username postgres      Database Superuser to Log In As
--prompt-password        Prompt for Password (can use PGPASSWORD instead)

Bundled Libraries

App::LedgerSMB::Admin

Provides base version tracking and management routines

App::LedgerSMB::Admin::Database

Routines to reload, create, update, backup, and restore databases

App::LedgerSMB::Admin::Database::Setting

Look up settings in a LedgerSMB database

App::LedgerSMB::Admin::User

Undeveloped, but will include basic user management routines.

SUBROUTINES/METHODS of This Library

add_paths(%versionhash)

path_for($major_version)

AUTHOR

Chris Travers, <chris at efficito.com>

BUGS

Please report any bugs or feature requests to bug-app-ledgersmb-admin at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=App-LedgerSMB-Admin. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc App::LedgerSMB::Admin

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2014 Chris Travers.

This program is distributed under the (Revised) BSD License: http://www.opensource.org/licenses/BSD-3-Clause

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

* Neither the name of Chris Travers's Organization nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.