[freeside-commits] freeside/FS/FS/Cron check.pm,1.2.2.6,1.2.2.7
Ivan,,,
ivan at wavetail.420.am
Thu Sep 24 13:00:38 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS/Cron
In directory wavetail.420.am:/tmp/cvs-serv1350/Cron
Modified Files:
Tag: FREESIDE_1_7_BRANCH
check.pm
Log Message:
get the ping username/pass from a config, good enough, RT#4610
Index: check.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Cron/check.pm,v
retrieving revision 1.2.2.6
retrieving revision 1.2.2.7
diff -u -d -r1.2.2.6 -r1.2.2.7
--- check.pm 24 Sep 2009 03:14:32 -0000 1.2.2.6
+++ check.pm 24 Sep 2009 20:00:35 -0000 1.2.2.7
@@ -47,14 +47,14 @@
sub check_sg {
my $conf = new FS::Conf;
+ #different trigger if they ever stop using multicustomer_hack ?
return 1 unless $conf->exists('sg-multicustomer_hack');
my $ua = new LWP::UserAgent;
$ua->agent("FreesideCronCheck/0.1 " . $ua->agent);
- #XXX shiiiiit.
- my $USER = '';
- my $PASS = '';
+ my $USER = $conf->config('sg-ping_username');
+ my $PASS = $conf->config('sg-ping_password');
my $req = new HTTP::Request GET=>"https://$USER:$PASS\@localhost/sg/ping.cgi";
my $res = $ua->request($req);
@@ -68,6 +68,7 @@
sub check_sgng {
my $conf = new FS::Conf;
+ #different trigger if they ever stop using multicustomer_hack ?
return 1 unless $conf->exists('sg-multicustomer_hack');
eval 'use RPC::XML; use RPC::XML::Client;';
More information about the freeside-commits
mailing list