[csw-devel] SF.net SVN: gar:[15176] csw/mgar/pkg/openssl/trunk/files/CSWosslrt. preinstall
chninkel at users.sourceforge.net
chninkel at users.sourceforge.net
Thu Jul 21 03:04:24 CEST 2011
Revision: 15176
http://gar.svn.sourceforge.net/gar/?rev=15176&view=rev
Author: chninkel
Date: 2011-07-21 01:04:24 +0000 (Thu, 21 Jul 2011)
Log Message:
-----------
openssl: fixed certificates migration preinstall code (should fix #4807)
Modified Paths:
--------------
csw/mgar/pkg/openssl/trunk/files/CSWosslrt.preinstall
Modified: csw/mgar/pkg/openssl/trunk/files/CSWosslrt.preinstall
===================================================================
--- csw/mgar/pkg/openssl/trunk/files/CSWosslrt.preinstall 2011-07-20 23:37:15 UTC (rev 15175)
+++ csw/mgar/pkg/openssl/trunk/files/CSWosslrt.preinstall 2011-07-21 01:04:24 UTC (rev 15176)
@@ -4,8 +4,15 @@
# under the ca_certificates package control
# /opt/csw/ssl/certs should now be a symbolic links
if [ "$MOVE_CERTS" = "Yes" ]; then
- mv -f /opt/csw/ssl/certs/* /opt/csw/etc/ssl/certs
- rmdir "/opt/csw/ssl/certs"
+ cd /opt/csw/ssl/certs
+ if [ $? -ne 0 ] && [ `pwd` = "/opt/csw/ssl/certs" ]; then
+ find . -type f | while read FILE; do
+ mkdir -p -m 0755 "/opt/csw/etc/ssl/certs/`dirname $FILE`"
+ mv "$FILE" "/opt/csw/etc/ssl/certs/$FILE"
+ done
+ find . ! -name "." -type d -exec rmdir '{}' ';'
+ fi
+ rmdir "/opt/csw/ssl/certs" 2>/dev/null || mv "/opt/csw/ssl/certs" "/opt/csw/ssl/certs.sav"
fi
true
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