[csw-devel] SF.net SVN: gar:[15166] csw/mgar/pkg/screen/trunk/files/CSWscrn.postinstall

chninkel at users.sourceforge.net chninkel at users.sourceforge.net
Wed Jul 20 16:54:21 CEST 2011


Revision: 15166
          http://gar.svn.sourceforge.net/gar/?rev=15166&view=rev
Author:   chninkel
Date:     2011-07-20 14:54:21 +0000 (Wed, 20 Jul 2011)

Log Message:
-----------
screen: fixed CSWscrn postinstall script (3)

Modified Paths:
--------------
    csw/mgar/pkg/screen/trunk/files/CSWscrn.postinstall

Modified: csw/mgar/pkg/screen/trunk/files/CSWscrn.postinstall
===================================================================
--- csw/mgar/pkg/screen/trunk/files/CSWscrn.postinstall	2011-07-20 14:44:30 UTC (rev 15165)
+++ csw/mgar/pkg/screen/trunk/files/CSWscrn.postinstall	2011-07-20 14:54:21 UTC (rev 15166)
@@ -8,8 +8,11 @@
 	cd $SOCKET_DIR
 	for DIR in *; do
 		[ -d "$DIR" ] || continue
-		mkdir -p "$NEW_SOCKET_DIR/$DIR"
-		getfacl "$DIR" | setfacl -f - "$NEW_SOCKET_DIR/$DIR"
+		mkdir \xC3-m 700 -p "$NEW_SOCKET_DIR/$DIR"
+		ls -lnd "$DIR" | awk ' { print $3, $4 }' | { 
+			read _UID _GID
+			chown $_UID:$_GID "$NEW_SOCKET_DIR/$DIR"
+		}
 		for SESSION in "$DIR"/*; do
 			[ -p "$SESSION" ] || continue
 			ln -sf "$SOCKET_DIR/$SESSION" "$NEW_SOCKET_DIR/$SESSION"


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