summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-03-20 03:07:30 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-03-20 03:07:30 +0000
commitd679e9082662c9d5991eda0e8db0de46a4539cdc (patch)
tree2dbea31ab3a96a724651e715eb74590697cf2adb
parentac35595d0e52f2b92bb255590402f4a14b059559 (diff)
Renaming ledger-smb.conf to ledgersmb.conf
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@952 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r--LedgerSMB/Sysconfig.pm4
-rw-r--r--dists/source/build.sh1
-rw-r--r--ledgersmb.conf18
-rw-r--r--ledgersmb.conf.default52
-rwxr-xr-xsql/Pg-central.sql2
5 files changed, 74 insertions, 3 deletions
diff --git a/LedgerSMB/Sysconfig.pm b/LedgerSMB/Sysconfig.pm
index 1634bfcc..7bcff26d 100644
--- a/LedgerSMB/Sysconfig.pm
+++ b/LedgerSMB/Sysconfig.pm
@@ -1,6 +1,6 @@
# This is the new configuration file for LedgerSMB. Eventually all system
# configuration directives will go here, This will probably not fully replace
-# the ledger-smb.conf until 1.3, however.
+# the ledgersmb.conf until 1.3, however.
package LedgerSMB::Sysconfig;
@@ -62,7 +62,7 @@ $localepath = 'locale/po';
);
my %config;
-read_config('ledger-smb.conf' => %config) or die;
+read_config('ledgersmb.conf' => %config) or die;
$logging = $config{''}{logging} if $config{''}{logging};
$check_max_invoices = $config{''}{check_max_invoices} if
diff --git a/dists/source/build.sh b/dists/source/build.sh
index ab3682fe..9a7c5f94 100644
--- a/dists/source/build.sh
+++ b/dists/source/build.sh
@@ -25,5 +25,6 @@ cd $build_d/ledger-smb
pwd
find -name '*.svn' -exec rm -rf '{}' ';'
rm ledger-smb.conf
+rm ledgersmb.conf
cd ..
tar -zcvf ledger-smb-$version.tar.gz ledger-smb
diff --git a/ledgersmb.conf b/ledgersmb.conf
new file mode 100644
index 00000000..29024dc5
--- /dev/null
+++ b/ledgersmb.conf
@@ -0,0 +1,18 @@
+[environment]
+# if the server can't find gzip, latex, dvips or pdflatex, append the path
+PATH: /usr/local/bin
+PATH: /usr/local/pgsql/bin
+
+# on mac os X using Fink's Perl libs, add the path
+#PERL5LIB: /sw/lib/perl5
+
+#################################
+# Global database parameters
+#################################
+# These parameters *must* be set correctly for LedgerSMB >= 1.2 to work
+#
+[globaldb]
+##uncomment below and set to correct values
+DBConnect: dbi:Pg:dbname=lsmb13;host=localhost;port=5432
+DBUserName: postgres
+DBPassword: test
diff --git a/ledgersmb.conf.default b/ledgersmb.conf.default
new file mode 100644
index 00000000..0b906640
--- /dev/null
+++ b/ledgersmb.conf.default
@@ -0,0 +1,52 @@
+session : DB
+logging : 0
+
+# Set language for login and admin pages
+language :
+
+# If you have LaTeX installed, set to 1
+latex : 1
+
+# Maximum number of invoices that can be printed on a cheque
+check_max_invoices : 5
+
+[environment]
+# If the server can't find applications, append to the path
+PATH: /usr/local/pgsql/bin
+PATH: /usr/local/bin
+
+# If on Mac OS X using Fink's Perl libs, append to the path
+#PERL5LIB = /sw/lib/perl5
+
+[paths]
+# spool directory for batch printing
+spool = spool
+# path to user configuration files
+userspath = users
+# templates base directory
+templates = templates
+# member file
+memberfile = users/members
+localepath = locale/po
+
+[programs]
+# program to use for file compression
+gzip = gzip -S .gz
+
+[mail]
+### How to send mail. The sendmail command is used unless smtphost is set.
+sendmail = /usr/bin/sendmail -t
+# smtphost = 127.0.0.1
+# smtptimeout = 60
+
+[printers]
+# Available printers
+Laser = lpr -Plaser
+Epson = lpr -PEpson
+
+[globaldb]
+# These paramaters *must* be set correctly
+# for LedgerSMB >= 1.2 to work
+DBConnect = dbi:Pg:dbname=ledgersmb;host=localhost;port=5432
+DBUserName = ledgersmb
+DBPassword = set me to correct password
diff --git a/sql/Pg-central.sql b/sql/Pg-central.sql
index 15c16ad7..2b03833f 100755
--- a/sql/Pg-central.sql
+++ b/sql/Pg-central.sql
@@ -1,7 +1,7 @@
begin;
-- Central DB structure
-- This is the central database stuff which is used across all datasets
--- in the ledger-smb.conf it is called 'ledgersmb' by default, but obviously
+-- in the ledgersmb.conf it is called 'ledgersmb' by default, but obviously
-- can be named anything.
-- USERS stuff --