aboutsummaryrefslogtreecommitdiffstats
path: root/create-ssl-certificate
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@mandriva.org>2009-03-29 21:29:57 +0000
committerGuillaume Rousse <guillomovitch@mandriva.org>2009-03-29 21:29:57 +0000
commitb0ef3f8f8912cd099e106d91ae0ebd2924b02f26 (patch)
treeda323c98e095a36d31c205ef3ac17b66c94f669f /create-ssl-certificate
parentd7e965af2545b4a3783b652d15fb74b4abca662b (diff)
downloadrpm-helper-b0ef3f8f8912cd099e106d91ae0ebd2924b02f26.tar
rpm-helper-b0ef3f8f8912cd099e106d91ae0ebd2924b02f26.tar.gz
rpm-helper-b0ef3f8f8912cd099e106d91ae0ebd2924b02f26.tar.bz2
rpm-helper-b0ef3f8f8912cd099e106d91ae0ebd2924b02f26.tar.xz
rpm-helper-b0ef3f8f8912cd099e106d91ae0ebd2924b02f26.zip
do not abort on upgrade, but if key already exists
Diffstat (limited to 'create-ssl-certificate')
-rwxr-xr-xcreate-ssl-certificate2
1 files changed, 1 insertions, 1 deletions
diff --git a/create-ssl-certificate b/create-ssl-certificate
index 2d4c471..954f187 100755
--- a/create-ssl-certificate
+++ b/create-ssl-certificate
@@ -19,7 +19,7 @@ if [ -z "$pkg" -o -z "$num" -o -z "$srv" ]; then
exit 1
fi
-if [ $num = 1 ]; then
+if [ ! -f /etc/pki/tls/private/$srv.pem ]; then
# default values
host=$(hostname)
KEY_LENGTH=1024