[csw-devel] SF.net SVN: gar:[11197] csw/mgar/pkg/apache2/trunk/files/CSWapache2. postinstall

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Sat Oct 9 00:09:59 CEST 2010


Revision: 11197
          http://gar.svn.sourceforge.net/gar/?rev=11197&view=rev
Author:   bdwalton
Date:     2010-10-08 22:09:58 +0000 (Fri, 08 Oct 2010)

Log Message:
-----------
apache2: tweak the way we drive openssl for cert generation; use bin instead of sbin for openssl

Modified Paths:
--------------
    csw/mgar/pkg/apache2/trunk/files/CSWapache2.postinstall

Modified: csw/mgar/pkg/apache2/trunk/files/CSWapache2.postinstall
===================================================================
--- csw/mgar/pkg/apache2/trunk/files/CSWapache2.postinstall	2010-10-08 08:07:31 UTC (rev 11196)
+++ csw/mgar/pkg/apache2/trunk/files/CSWapache2.postinstall	2010-10-08 22:09:58 UTC (rev 11197)
@@ -77,7 +77,18 @@
     echo Generating dummy ssl key and certificate...
     # this is likely overkill for a dummy cert, but why not
     umask 0077
-    chroot ${ROOT} perl -e 'print "TS\nWestfarthing\nHobbiton\n\n\nBilbo Baggins\nbilbo at example.net\n\n\n";' | chroot ${ROOT} openssl req -new -newkey rsa:1024 -days 365 -nodes -x509 -keyout /opt/csw/apache2/etc/server.key  -out /opt/csw/apache2/etc/server.crt >/dev/null 2>&1
+    set -x
+    cat <<EOF | /usr/sbin/chroot ${ROOT} /opt/csw/bin/openssl req -new -newkey rsa:1024 -days 365 -nodes -x509 -keyout /opt/csw/apache2/etc/server.key  -out /opt/csw/apache2/etc/server.crt >/dev/null
+TS
+Westfarthing
+Hobbiton
+
+
+Bilbo Baggins
+bilbo at example.net
+
+
+EOF
 fi
 
 exit 0


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list