jag har sån...
gör en ny med detta i:
#!/bin/sh
#
# Copyright (c) 2002 Apple Computer, Inc. All Rights Reserved
#
# Extract the value of the '#SSLPassPhrase site:port "value"'
# directive for the asked <site:port> obtained from first argument,
# return a blank line if not found
#
pattern="#SSLPassPhrase $1 "
config="/private/etc/httpd/httpd_macosxserver.conf"
error="/private/var/log/httpd/getsslpassphrase_log"
result=`grep "$pattern" $config | sed -e "s/$pattern//" | sed -e 's@"@@g'`
if [ ".$result" = "." ]; then
pattern="#SSLPassPhrase any:any "
result=`grep "$pattern" $config | sed -e "s/$pattern//" | sed -e 's@"@@g'`
fi
if [ ".$result" = "." ]; then
echo "Passphrase for site '$1' not found" >> $error
exit 1
fi
echo $result
exit 0
hahah, skönt där med automatiska smileys.. men de e ju i comments-delen så skitsamma