1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
freebsd-ports/net/sipxconfig/files/patch-web_bin_create-ssl-keystore.sh.in
Martin Wilke 246487a082 sipXconfig is the web based configuration system for sipX.
WWW: http://sipx-wiki.calivia.com/index.php/Main_Page

PR:		ports/107931
Submitted by:	Michael Durian <durian at shadetreesoftware.com>
2007-02-01 22:30:35 +00:00

23 lines
748 B
Bash

--- ./web/bin/create-ssl-keystore.sh.in.orig Thu Jan 4 16:15:06 2007
+++ ./web/bin/create-ssl-keystore.sh.in Thu Jan 4 16:26:01 2007
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/local/bin/bash
##
## create-ssl-keystore.sh
##
@@ -21,11 +21,11 @@
PreviousChecksum=""
openssl="@openssl@"
-Checksum=`cat $Certificate $Key | md5sum | awk '{print $1}'`
+Checksum=`cat $Certificate $Key | /sbin/md5 -r | awk '{print $1}'`
if [ -f $KeyStoreFilesChecksum ]; then
if [ -f $KeyStore ]; then
PreviousChecksum=`cat $KeyStoreFilesChecksum`
- if [ "$Checksum" == "$PreviousChecksum" ]; then
+ if [ "x$Checksum" = "x$PreviousChecksum" ]; then
echo "Creating $KeyStore was skipped, previous checksum of contents matched"
exit 0;
fi