Skip to content

Commit bc2d267

Browse files
committed
CPAN::Config use manual install as default for root
Case CPANEL-25605: By default prefer to install CPAN modules to /opt/cpanel/perl5/52* directory. References: CPANEL-23475 Upstream-URL: andk/cpanpm#123
1 parent e8e456d commit bc2d267

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpan/CPAN/lib/CPAN/FirstTime.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ sub init {
906906
) {
907907
local $auto_config = 0; # We *must* ask, even under autoconfig
908908
local *_real_prompt; # We *must* show prompt
909-
my_prompt_loop(install_help => 'local::lib', $matcher,
909+
my_prompt_loop(install_help => ( $> == 0 ? 'manual' : 'local::lib' ), $matcher,
910910
'local::lib|sudo|manual');
911911
}
912912
$CPAN::Config->{install_help} ||= ''; # Temporary to suppress warnings

0 commit comments

Comments
 (0)