Skip to content

Commit eb9a756

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 0fdd578 commit eb9a756

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cpan/CPAN/lib/CPAN/FirstTime.pm

+1-1
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)