[pve-devel] r4969 - pve-access-control/trunk
svn-commits at proxmox.com
svn-commits at proxmox.com
Wed Aug 11 12:08:12 CEST 2010
Author: dietmar
Date: 2010-08-11 10:08:12 +0000 (Wed, 11 Aug 2010)
New Revision: 4969
Modified:
pve-access-control/trunk/pveum
Log:
use run_command from PVE::Tools
Modified: pve-access-control/trunk/pveum
===================================================================
--- pve-access-control/trunk/pveum 2010-08-11 10:03:20 UTC (rev 4968)
+++ pve-access-control/trunk/pveum 2010-08-11 10:08:12 UTC (rev 4969)
@@ -2,6 +2,7 @@
use strict;
use Getopt::Long;
+use PVE::Tools qw(run_command);
use PVE::AccessControl;
use File::Path qw(make_path remove_tree);
use Term::ReadLine;
@@ -23,9 +24,9 @@
mkdir $authdir;
my $cmd = "openssl genrsa -out '$authdir/authkey.key' 1024";
- PVE::AccessControl::run_command($cmd, umask => 0177);
+ run_command($cmd, umask => 0177);
$cmd = "openssl rsa -in '$authdir/authkey.key' -pubout -out '$authdir/authkey.pub'";
- PVE::AccessControl::run_command($cmd, umask => 0133)
+ run_command($cmd, umask => 0133)
}
PVE::INotify::inotify_init();
More information about the pve-devel
mailing list