projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
331de49
)
upgrade optimizations for space-constrained installs, RT10071
author
levinse
<levinse>
Sun, 23 Jan 2011 22:04:30 +0000
(22:04 +0000)
committer
levinse
<levinse>
Sun, 23 Jan 2011 22:04:30 +0000
(22:04 +0000)
FS/FS/otaker_Mixin.pm
patch
|
blob
|
history
FS/bin/freeside-daily
patch
|
blob
|
history
diff --git
a/FS/FS/otaker_Mixin.pm
b/FS/FS/otaker_Mixin.pm
index
8d9c882
..
af61a85
100644
(file)
--- a/
FS/FS/otaker_Mixin.pm
+++ b/
FS/FS/otaker_Mixin.pm
@@
-4,6
+4,7
@@
use strict;
use Carp qw( croak ); #confess );
use FS::Record qw( qsearch qsearchs );
use FS::access_user;
use Carp qw( croak ); #confess );
use FS::Record qw( qsearch qsearchs );
use FS::access_user;
+use FS::UID qw( dbh );
sub otaker {
my $self = shift;
sub otaker {
my $self = shift;
@@
-76,6
+77,11
@@
sub _upgrade_otaker {
my $error = $record->replace;
die $error if $error;
}
my $error = $record->replace;
die $error if $error;
}
+
+ if ( $table eq 'cust_attachment' ) {
+ warn " committing (cust_attachment) \n";
+ dbh->commit or die dbh->errstr;
+ }
}
}
diff --git
a/FS/bin/freeside-daily
b/FS/bin/freeside-daily
index
ee3cda6
..
0b770f6
100755
(executable)
--- a/
FS/bin/freeside-daily
+++ b/
FS/bin/freeside-daily
@@
-54,6
+54,10
@@
backup_scp();
use FS::Cron::rt_tasks qw(rt_escalate);
rt_escalate(%opt);
use FS::Cron::rt_tasks qw(rt_escalate);
rt_escalate(%opt);
+my $deldir = "$FS::UID::cache_dir/cache.$FS::UID::datasrc/";
+unlink <${deldir}.invoice*>;
+unlink <${deldir}.letter*>;
+
###
# subroutines
###
###
# subroutines
###