|
Revision 717, 1.4 kB
(checked in by mike, 2 years ago)
|
* patch the PostgreSQL service name for Etch
* do not run pgpatch.sh (done in postinst)
|
| Line | |
|---|
| 1 |
#! /bin/sh /usr/share/dpatch/dpatch-run |
|---|
| 2 |
## sipxcallresolver.sh.in.dpatch by <msl@calivia.com> |
|---|
| 3 |
## |
|---|
| 4 |
## All lines beginning with `## DP:' are a description of the patch. |
|---|
| 5 |
## DP: Patch location of rubygems (GEM_LIB_DIR is not configurable) |
|---|
| 6 |
|
|---|
| 7 |
@DPATCH@ |
|---|
| 8 |
|
|---|
| 9 |
--- ../bin/sipxcallresolver.sh.in.orig 2007-05-16 09:43:24.000000000 +0200 |
|---|
| 10 |
+++ ../bin/sipxcallresolver.sh.in 2007-05-16 09:45:00.000000000 +0200 |
|---|
| 11 |
@@ -33,7 +33,7 @@ |
|---|
| 12 |
: ${DbPatchDir:=${ConfDir}/cdr} |
|---|
| 13 |
: ${DbPatchLog:=${LogDir}/sipcdrpatch.log} |
|---|
| 14 |
: ${CallResolverLog:=${LogDir}/sipcallresolver.log} |
|---|
| 15 |
-: ${CallResolverMain:=@GEM_LIB_DIR@/sipxcallresolver-2.0.0/lib/main.rb} |
|---|
| 16 |
+: ${CallResolverMain:=/var/lib/gems/1.8/gems/sipxcallresolver-2.0.0/lib/main.rb} |
|---|
| 17 |
|
|---|
| 18 |
resolverArgs="--confdir ${ConfDir} --logdir ${LogDir}" |
|---|
| 19 |
Database=SIPXCDR |
|---|
| 20 |
@@ -62,10 +62,14 @@ |
|---|
| 21 |
then |
|---|
| 22 |
# Red Hat Enterprise uses the name rhdb. |
|---|
| 23 |
echo -e rhdb |
|---|
| 24 |
+ elif [ -f /etc/init.d/postgresql-8.1 ] |
|---|
| 25 |
+ then |
|---|
| 26 |
+ # Debian Etch |
|---|
| 27 |
+ echo -e postgresql-8.1 |
|---|
| 28 |
+ else |
|---|
| 29 |
+ # Most other distributions use the name postgresql. |
|---|
| 30 |
+ echo -e postgresql |
|---|
| 31 |
fi |
|---|
| 32 |
- |
|---|
| 33 |
- # Most other distributions use the name postgresql. |
|---|
| 34 |
- echo -e postgresql |
|---|
| 35 |
} |
|---|
| 36 |
|
|---|
| 37 |
# Search/replace variables used in config.defs into config files |
|---|
| 38 |
@@ -444,7 +448,6 @@ |
|---|
| 39 |
fixFileAccess ${CallResolverLog} |
|---|
| 40 |
if ! databaseCheck Silent |
|---|
| 41 |
then |
|---|
| 42 |
- @bindir@/pgpatch.sh |
|---|
| 43 |
databaseCommand create |
|---|
| 44 |
fi |
|---|
| 45 |
} |
|---|