Added ability to use 0.08 asterisk-perl module in local /usr/share/astguiclient/libs directory

git-svn-id: svn://192.168.202.10@576 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2007-03-29 19:52:08 +00:00
parent 6bec655997
commit 37ce001008
4 changed files with 11 additions and 0 deletions
+1
View File
@@ -284,6 +284,7 @@ if ($DB) {print "double check that processes are not running...\n";}
sleep(1);
`PERL5LIB="$PATHhome/libs"; export PERL5LIB`;
### you may have to use a different ps command if you're not using Slackware Linux
# @psoutput = `ps -f -C AST_update --no-headers`;
# @psoutput = `ps -f -C AST_updat* --no-headers`;
+4
View File
@@ -19,6 +19,8 @@ foreach(@conf)
{
$line = $conf[$i];
$line =~ s/ |>|\n|\r|\t|\#.*|;.*//gi;
if ( ($line =~ /^PATHhome/) && ($CLIhome < 1) )
{$PATHhome = $line; $PATHhome =~ s/.*=//gi;}
if ( ($line =~ /^VARserver_ip/) && ($CLIserver_ip < 1) )
{$VARserver_ip = $line; $VARserver_ip =~ s/.*=//gi;}
if ( ($line =~ /^VARDB_server/) && ($CLIDB_server < 1) )
@@ -34,6 +36,8 @@ foreach(@conf)
$i++;
}
`PERL5LIB="$PATHhome/libs"; export PERL5LIB`;
use DBI;
$dbhA = DBI->connect("DBI:mysql:$VARDB_database:$VARDB_server:$VARDB_port", "$VARDB_user", "$VARDB_pass")
+3
View File
@@ -529,6 +529,9 @@ PHASE 5: ADDING STARTUP ENTRIES FOR ASTGUICLIENT/VICIDIAL SCRIPTS
- vi /etc/rc.d/rc.local
- add the following entries(here's what we used):
### Path to local asterisk-perl_0.08 module if needed
PERL5LIB="/usr/share/astguiclient/libs"; export PERL5LIB
### start time server
/usr/local/bin/ntpdate -u 18.145.0.30
/usr/sbin/ntpd
+3
View File
@@ -2736,6 +2736,9 @@ SUBPHASE 6.4: setting up asterisk and helper applications for startup
- vi /etc/rc.d/rc.local
- add the following entries(here's what we used):
### Path to local asterisk-perl_0.08 module if needed
PERL5LIB="/usr/share/astguiclient/libs"; export PERL5LIB
### start time server
/usr/local/bin/ntpdate -u 18.145.0.30
/usr/sbin/ntpd