summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-08-01 20:52:48 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-08-01 20:52:48 +0000
commita6f8275a74dd684e2b35010b0ba28a1d3b9cca23 (patch)
tree55ab5df6dbea1c71337bcfd43cc89c7721c0200b /perl-install/install_any.pm
parent0b3d57562f0ef60c905e16559f46fe64174a6839 (diff)
downloaddrakx-backup-do-not-use-a6f8275a74dd684e2b35010b0ba28a1d3b9cca23.tar
drakx-backup-do-not-use-a6f8275a74dd684e2b35010b0ba28a1d3b9cca23.tar.gz
drakx-backup-do-not-use-a6f8275a74dd684e2b35010b0ba28a1d3b9cca23.tar.bz2
drakx-backup-do-not-use-a6f8275a74dd684e2b35010b0ba28a1d3b9cca23.tar.xz
drakx-backup-do-not-use-a6f8275a74dd684e2b35010b0ba28a1d3b9cca23.zip
use $::prefix
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 0ff254444..a7157a667 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -430,8 +430,7 @@ sub addToBeDone(&$) {
sub setAuthentication {
my ($o) = @_;
my ($shadow, $ldap, $nis, $winbind, $winpass) = @{$o->{authentication} || {}}{qw(shadow LDAP NIS winbind winpass)};
- my $p = $o->{prefix};
- any::enableShadow($p) if $shadow;
+ any::enableShadow() if $shadow;
if ($ldap) {
$o->pkg_install(qw(chkauth openldap-clients nss_ldap pam_ldap));
run_program::rooted($o->{prefix}, "/usr/sbin/chkauth", "ldap", "-D", $o->{netc}{LDAPDOMAIN}, "-s", $ldap);
@@ -445,9 +444,9 @@ sub setAuthentication {
substInFile {
$_ = "#~$_" unless /^#/;
$_ .= "$t $nis\n" if eof;
- } "$p/etc/yp.conf";
+ } "$::prefix/etc/yp.conf";
require network;
- network::write_conf("$p/etc/sysconfig/network", $o->{netc});
+ network::write_conf("$::prefix/etc/sysconfig/network", $o->{netc});
} elsif ($winbind) {
my $domain = $o->{netc}{WINDOMAIN};
$domain =~ tr/a-z/A-Z/;