From 52e21b9d2cb3e614378500d924c501a7be8bea0b Mon Sep 17 00:00:00 2001 From: Guillaume Rousse Date: Sun, 27 Jan 2008 14:49:52 +0000 Subject: revert previous commit --- create-ssl-certificate | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'create-ssl-certificate') diff --git a/create-ssl-certificate b/create-ssl-certificate index 0e2e250..784d0e4 100755 --- a/create-ssl-certificate +++ b/create-ssl-certificate @@ -2,23 +2,17 @@ # $Id$ # helper script for creating ssl certificates -while [ $# -gt 0 ]; do - case $1 in - -g) group=$2; shift 2;; - -b) bundle="true"; shift;; - *) args=( ${args[@]:-} $1 ); shift;; - esac -done - -pkg=${args[0]} # name of the package -num=${args[1]} # number of packages installed -srv=${args[2]} # name of the service - -if [ -z "$pkg" -o -z "$num" -o -z "$srv" ]; then - echo "usage: $0 [-g ] [-b] " 1>&2 +if [ $# -lt 3 ]; then + echo "usage: $0 " 1>&2 exit 1 fi +pkg=$1 # name of the package +num=$2 # number of packages installed +srv=$3 # name of the service +bundle=$4 # bundle mode +group=$5 # group with read access on key + if [ $num = 1 ]; then # default values host=$(hostname) -- cgit v1.2.1