Skip to content

Commit

Permalink
PAUSE::newfile_hook: use /data/pause, not /home/ftp
Browse files Browse the repository at this point in the history
This should be from config, but for now, it should just work.

/home/ftp is now a symlink, and the locking code will not follow a
symlink, so we quietly failed to lock.
  • Loading branch information
rjbs committed Apr 27, 2024
1 parent 414001b commit 7871be4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/PAUSE.pm
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ sub newfile_hook {
$rf = File::Rsync::Mirror::Recentfile->new
(
@common_args,
localroot => "/home/ftp/pub/PAUSE/authors/",
localroot => "/data/pause/pub/PAUSE/authors/",
aggregator => [qw(6h 1d 1W 1M 1Q 1Y Z)],
);
};
Expand All @@ -447,7 +447,7 @@ sub newfile_hook {
$rf = File::Rsync::Mirror::Recentfile->new
(
@common_args,
localroot => "/home/ftp/pub/PAUSE/modules/",
localroot => "/data/pause/pub/PAUSE/modules/",
aggregator => [qw(1d 1W Z)],
);
$rf->update($f,"new");
Expand All @@ -461,7 +461,7 @@ sub delfile_hook {
$rf = File::Rsync::Mirror::Recentfile->new
(
@common_args,
localroot => "/home/ftp/pub/PAUSE/authors/",
localroot => "/data/pause/pub/PAUSE/authors/",
aggregator => [qw(6h 1d 1W 1M 1Q 1Y Z)],
);
};
Expand All @@ -473,7 +473,7 @@ sub delfile_hook {
$rf = File::Rsync::Mirror::Recentfile->new
(
@common_args,
localroot => "/home/ftp/pub/PAUSE/modules/",
localroot => "/data/pause/pub/PAUSE/modules/",
aggregator => [qw(1d 1W Z)],
);
$rf->update($f,"delete");
Expand Down

0 comments on commit 7871be4

Please sign in to comment.