summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--perl-install/any.pm7
-rw-r--r--perl-install/install_any.pm7
2 files changed, 6 insertions, 8 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 0be989f98..83083afa1 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -68,10 +68,9 @@ sub crypt {
my ($password, $md5) = @_;
crypt($password, $md5 ? '$1$' . salt(8) : salt(2));
}
-sub enableShadow {
- my ($prefix) = @_;
- run_program::rooted($prefix, "pwconv") or log::l("pwconv failed");
- run_program::rooted($prefix, "grpconv") or log::l("grpconv failed");
+sub enableShadow() {
+ run_program::rooted($::prefix, "pwconv") or log::l("pwconv failed");
+ run_program::rooted($::prefix, "grpconv") or log::l("grpconv failed");
}
sub hdInstallPath() {
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/;