From: ivan Date: Wed, 12 Dec 2001 07:59:33 +0000 (+0000) Subject: use pwd_mkdb to install /etc/master.passwd.new instead of moving it into place X-Git-Tag: freeside_1_4_0pre11~192 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=aa858d1764680bb3a195a574e7daec0feb206dbf use pwd_mkdb to install /etc/passwd.new instead of moving it into place --- diff --git a/bin/svc_acct.export b/bin/svc_acct.export index 8c408a2e8..3ac7a4f8f 100755 --- a/bin/svc_acct.export +++ b/bin/svc_acct.export @@ -1,6 +1,6 @@ #!/usr/bin/perl -w # -# $Id: svc_acct.export,v 1.27 2001-12-11 10:38:56 ivan Exp $ +# $Id: svc_acct.export,v 1.28 2001-12-12 07:59:33 ivan Exp $ # # Create and export password, radius and vpopmail password files: # passwd, passwd.adjunct, shadow, acp_passwd, acp_userinfo, acp_dialup @@ -573,7 +573,8 @@ foreach $bsdshellmachine (@bsdshellmachines) { ssh("root\@$bsdshellmachine", "( ". "mv /etc/passwd.new /etc/passwd; ". - "mv /etc/master.passwd.new /etc/master.passwd; ". + #"mv /etc/master.passwd.new /etc/master.passwd; ". + "pwd_mkdb /etc/master.passwd.new; ". " )" ) == 0 or die "ssh error: $!";