Last change
on this file since 1389 was
1345,
checked in by broder, 16 years ago
|
Fix some bugs in invirt-update-vnc-cert
|
-
Property svn:executable set to
*
|
File size:
568 bytes
|
Rev | Line | |
---|
[1336] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | if [ "$(ls /etc/invirt/vnc-cert.d)" == "" ]; then |
---|
| 4 | echo "E: No certs in /etc/invirt/vnc-cert.d/" >&2 |
---|
| 5 | echo " Put certificates for all Invirt VNC proxy servers in" >&2 |
---|
| 6 | echo " /etc/invirt/vnc-cert.d, then run this script again" >&2 |
---|
| 7 | exit 1 |
---|
| 8 | fi |
---|
| 9 | |
---|
| 10 | TMP_DIR="$(mktemp -d)" |
---|
[1345] | 11 | for i in /etc/invirt/vnc-cert.d/*.crt; do |
---|
| 12 | keytool -import -noprompt -alias "$(basename "${i%.crt}")" -file \ |
---|
| 13 | "$i" -keystore "$TMP_DIR/trust.store" -storepass "foobar" |
---|
[1336] | 14 | done |
---|
| 15 | |
---|
| 16 | jar uf /usr/share/invirt-vnc-client/VncViewer.jar -C "$TMP_DIR" trust.store |
---|
| 17 | |
---|
| 18 | rm -rf "$TMP_DIR" |
---|
Note: See
TracBrowser
for help on using the repository browser.