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

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Fri Oct 8 04:09:51 CEST 2010


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

Log Message:
-----------
apache2: set a tight umask before creating dummy ssl cert in apache2 postinstall

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 01:59:42 UTC (rev 11194)
+++ csw/mgar/pkg/apache2/trunk/files/CSWapache2.postinstall	2010-10-08 02:09:51 UTC (rev 11195)
@@ -75,6 +75,8 @@
 
 if [ ! -f $AP2_CONFDIR/server.crt -a ! -f $AP2_CONFDIR/server.key ]; then
     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
 fi
 


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