]> git.entuzijast.net Git - freeradius-dialup-admin.git/commitdiff
Make clean_radacct and truncate_radacct work correctly
authorkkalev <kkalev>
Mon, 6 Oct 2003 15:18:40 +0000 (15:18 +0000)
committerkkalev <kkalev>
Mon, 6 Oct 2003 15:18:40 +0000 (15:18 +0000)
Changelog
bin/clean_radacct
bin/truncate_radacct

index 8cc83b5eaaecdaf700af23109a98e429af7e2ec2..992cfe0927b0a870f70c4a43f3d0e48541efc0b9 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -50,6 +50,7 @@ Ver 1.63:
 * Add more comments in the admin.conf file
 * Show correct calculation of the montlhy usage time.
 * Don't show an account as locked if Dialup-Access does not exist and the mapping corresponds to 'none' attribute
+* Make clean_radacct and truncate_radacct work correctly
 Ver 1.62:
 * Remove one sql query from user_admin which was not needed.
 * Instead of a query like "LIKE 'YYYY-MM-DD%'" use "AcctStopTime >= 'YYYY-MM-DD 00:00:00 AND AcctStopTime
index e89cf112c18c8d2db42f010f7d8b15ef8df2aa13..1bb228c2c189e324f71664f9e92368f6f9a073a3 100755 (executable)
@@ -22,7 +22,7 @@ while(<CONF>){
 }
 close CONF;
 
-$sql_password = ($sql_password == '') ? '' : "-p $sql_password";
+$sql_password = ($sql_password eq '') ? '' : "-p$sql_password";
 
 ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime;
 $date = POSIX::strftime("%Y-%m-%d %T",$sec,$min,$hour,($mday - $back_days),$mon,$year,$wday,$yday,$isdst);
@@ -34,4 +34,4 @@ open TMP, ">/tmp/clean_radacct.query"
         or die "Could not open tmp file\n";
 print TMP $query;
 close TMP;
-`$mysql -h $sql_server -u $sql_username $sql_password $sql_database </tmp/clean_radacct.query`;
+`$mysql -h$sql_server -u$sql_username $sql_password $sql_database </tmp/clean_radacct.query`;
index 00c6a6ccf609b07a89234c520c353cbf1242dbaf..f957b086e66a8ad7ddd604fe9bd0904c11259ee9 100755 (executable)
@@ -22,7 +22,7 @@ while(<CONF>){
 }
 close CONF;
 
-$sql_password = ($sql_password == '') ? '' : "-p $sql_password";
+$sql_password = ($sql_password eq '') ? '' : "-p$sql_password";
 
 ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime;
 $date = POSIX::strftime("%Y-%m-%d %T",$sec,$min,$hour,($mday - $back_days),$mon,$year,$wday,$yday,$isdst);
@@ -36,4 +36,4 @@ open TMP, ">/tmp/truncate_radacct.query"
         or die "Could not open tmp file\n";
 print TMP $query;
 close TMP;
-`$mysql -h $sql_server -u $sql_username $sql_password $sql_database </tmp/truncate_radacct.query`;
+`$mysql -h$sql_server -u$sql_username $sql_password $sql_database </tmp/truncate_radacct.query`;