[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[4550] branches/1.3
- Subject: SF.net SVN: ledger-smb:[4550] branches/1.3
- From: ..hidden..
- Date: Sat, 24 Mar 2012 10:39:25 +0000
Revision: 4550
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=4550&view=rev
Author: einhverfr
Date: 2012-03-24 10:39:25 +0000 (Sat, 24 Mar 2012)
Log Message:
-----------
adding code to unlink backups after sent
Modified Paths:
--------------
branches/1.3/Changelog
branches/1.3/scripts/setup.pl
Modified: branches/1.3/Changelog
===================================================================
--- branches/1.3/Changelog 2012-03-24 10:27:56 UTC (rev 4549)
+++ branches/1.3/Changelog 2012-03-24 10:39:25 UTC (rev 4550)
@@ -21,6 +21,7 @@
* Fixed pos ignores pd_proto and always connects tcp (Chris T, bug 3458112)
* Error now displayed when currencies are not defined (Chris T, bug 3509555)
* Fixed "no obvious way to select credit account" (Chris T, bug 3510564)
+* Added code to unlink backup files after sent (Chris T)
Andres B is Andres Basile
Modified: branches/1.3/scripts/setup.pl
===================================================================
--- branches/1.3/scripts/setup.pl 2012-03-24 10:27:56 UTC (rev 4549)
+++ branches/1.3/scripts/setup.pl 2012-03-24 10:39:25 UTC (rev 4550)
@@ -237,6 +237,7 @@
file => $backupfile,
);
$mail->send;
+ unlink $backupfile;
my $template = LedgerSMB::Template->new(
path => 'UI/setup',
template => 'complete',
@@ -258,6 +259,7 @@
while (read(BAK, $data, 1024 * 1024)){ # Read 1MB at a time
print $data;
}
+ unlink $backupfile;
exit;
} else {
$request->error($request->{_locale}->text("Don't know what to do with backup"));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.