# Additional functionality (v1.1) by Ward Vandewege (ward@gnu.org), May 2004
# Additional changes (syslog) by Justin Baugh (baughj@gnu.org), August 2005
# Additional testing, bugfixes and functionality by Ward Vandewege (ward@gnu.org), Apr 2006 - Jan 2013
+# Additional changes (update ftpindex) by Ruben Rodriguez (ruben@gnu.org), September 2017
use strict;
use Net::SMTP;
my $NAME = 'upload-ftp-v1.2.pl';
my $VERSION = '1.2'; # This is the protocol version
-my $DATE = '2013/01/23 20:26:29';
+my $DATE = '2017/09/14 12:42:38';
my $AUTHORS = "Free Software Foundation <sysadmin\@gnu.org>";
-my $COPYRIGHT = "2003-2013";
+my $COPYRIGHT = "2003-2017";
my $LICENSE = "GPLv3 or later - http://www.fsf.org/licenses/gpl.txt";
my $URL = "http://www.gnu.org/prep/maintain/html_node/Automated-FTP-Uploads.html";
ftp_syslog('info', "($log_style) No files found for processing.");
} else {
ftp_syslog('info', "($log_style) Processing complete: " . (scalar @incoming) . " uploads processed.");
+ system("/etc/cron.daily/generate-ftpindex");
+ ftp_syslog('info', "($log_style) Updated ftpindex");
}
# Clean up the incoming directory and the incoming tmp directory - remove files older than a day