[freeside-commits] freeside/FS/FS/Cron check.pm,1.6,1.7
Ivan,,,
ivan at wavetail.420.am
Thu Sep 24 13:00:00 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS/Cron
In directory wavetail.420.am:/tmp/cvs-serv377/Cron
Modified Files:
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.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- check.pm 24 Sep 2009 03:14:26 -0000 1.6
+++ check.pm 24 Sep 2009 19:59:56 -0000 1.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