Masato Taruishi
taru****@users*****
2004年 10月 21日 (木) 01:14:24 JST
=================================================================== RCS file: ultrapossum/module/startTLS/keyman,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- ultrapossum/module/startTLS/keyman 2004/10/20 08:31:26 1.2 +++ ultrapossum/module/startTLS/keyman 2004/10/20 16:14:24 1.3 @@ -38,8 +38,8 @@ set -e -if test "x$1" != "x"; then - CERTHOST=$1 +if test "x$2" != "x"; then + CERTHOST=$2 fi eval `ultrapossum-config init` @@ -47,9 +47,8 @@ trap "/bin/rm -f $tmp; eval `ultrapossum-config term`" 0 # handle certhost override -if test "x$1" != "x"; then - CERTHOST=$1 - shift +if test "x$2" != "x"; then + CERTHOST=$2 fi case "$1" in @@ -81,7 +80,7 @@ /bin/rm -f $TLSCERTIFICATEKEYFILE $TLSCERTIFICATEFILE ;; *) - echo "Usage: $0 <keygen|remove>" 1>&2 + echo "Usage: $0 <keygen|remove> [<certhost>]" 1>&2 exit 1 ;; esac