X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-vnc-client.git/blobdiff_plain/32970dd51d76584680d859f118ee0cac2fd904a7..e668088ccdedcefbd0bd290d98532d4f16458e5e:/debian/invirt-update-vnc-cert?ds=sidebyside diff --git a/debian/invirt-update-vnc-cert b/debian/invirt-update-vnc-cert index fa73f27..b07832a 100755 --- a/debian/invirt-update-vnc-cert +++ b/debian/invirt-update-vnc-cert @@ -8,9 +8,9 @@ if [ "$(ls /etc/invirt/vnc-cert.d)" == "" ]; then fi TMP_DIR="$(mktemp -d)" -for i in $(ls /etc/invirt/vnc-cert.d/*.crt); do - keytool -noprompt -alias "${i%.crt}" -file "/etc/invirt/vnc-cert.d/$i" \ - -keystore "$TMP_DIR/trust.store" -storepass "foobar" +for i in /etc/invirt/vnc-cert.d/*.crt; do + keytool -import -noprompt -alias "$(basename "${i%.crt}")" -file \ + "$i" -keystore "$TMP_DIR/trust.store" -storepass "foobar" done jar uf /usr/share/invirt-vnc-client/VncViewer.jar -C "$TMP_DIR" trust.store