X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-vnc-client.git/blobdiff_plain/bc0b69cd9c8df639a2d25fddb90c5f12a50caf0e..b5ae9ccd719ed01a34d3a40b3aa7f4773f83e4f1:/debian/invirt-update-vnc-cert?ds=sidebyside diff --git a/debian/invirt-update-vnc-cert b/debian/invirt-update-vnc-cert index 33db30d..27997c0 100755 --- a/debian/invirt-update-vnc-cert +++ b/debian/invirt-update-vnc-cert @@ -8,21 +8,23 @@ import sys import shutil def main(): - subprocess.call(['kinit', '-k', 'daemon/%s' % config.web.hostname]) + call(['kinit', '-k', 'daemon/%s' % config.web.hostname]) + + shutil.copy('/usr/share/invirt-vnc-client/VncViewer.src.jar', + '/usr/share/invirt-vnc-client/VncViewer.jar') temp_dir = tempfile.mkdtemp() keystore = os.path.join(temp_dir, 'trust.store') for host in config.hosts: - cert = subprocess.Popen(['remctl', config.remote.hostname, 'web', - 'vnccert', host.hostname], - stdout=PIPE) + cert = Popen(['remctl', config.remote.hostname, 'web', 'vnccert', host.hostname], + stdout=PIPE) cert.wait() - subprocess.call(['keytool', '-import', '-noprompt', '-alias', - host.hostname, '-keystore', keystore, '-storepass', - 'foobar'], stdin=cert.stdout) + call(['keytool', '-import', '-noprompt', '-alias', host.hostname, + '-keystore', keystore, '-storepass', 'foobar'], + stdin=cert.stdout) - subprocess.call(['jar', 'uf', '/usr/share/invirt-vnc-client/VncViewer.jar', - '-C', temp_dir, 'trust.store']) + call(['jar', 'uf', '/usr/share/invirt-vnc-client/VncViewer.jar', + '-C', temp_dir, 'trust.store']) shutil.rmtree(temp_dir)