diff options
author | Guillaume Rousse <guillomovitch@mandriva.org> | 2009-03-29 21:29:57 +0000 |
---|---|---|
committer | Guillaume Rousse <guillomovitch@mandriva.org> | 2009-03-29 21:29:57 +0000 |
commit | b0ef3f8f8912cd099e106d91ae0ebd2924b02f26 (patch) | |
tree | da323c98e095a36d31c205ef3ac17b66c94f669f /create-ssl-certificate | |
parent | d7e965af2545b4a3783b652d15fb74b4abca662b (diff) | |
download | rpm-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-x | create-ssl-certificate | 2 |
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 |