+if ($cmd ne 'verifyapi' && $cmd ne 'printmanpod') {
+ die "please run as root\n" if $> != 0;
+
+ PVE::INotify::inotify_init();
+
+ my $rpcenv = PVE::RPCEnvironment->init('cli');
+
+ $rpcenv->init_request();
+ $rpcenv->set_language($ENV{LANG});
+ $rpcenv->set_user('root@pam');
+
+# autmatically generate the private key if it does not already exists
+ PVE::Cluster::gen_auth_key();