[prev in list] [next in list] [prev in thread] [next in thread] 

List:       os-sim-commits
Subject:    [Os-sim-commits] os-sim/debian ossim-framework.postinst,1.45,1.46
From:       David Gil <dvgil () users ! sourceforge ! net>
Date:       2008-10-15 10:47:02
Message-ID: E1Kq3uA-0001FB-OF () 23jxhf1 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Update of /cvsroot/os-sim/os-sim/debian
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv4770/debian

Modified Files:
	ossim-framework.postinst 
Log Message:
same for /usr/share/ossim/www/risk_maps/pixmaps/uploaded


Index: ossim-framework.postinst
===================================================================
RCS file: /cvsroot/os-sim/os-sim/debian/ossim-framework.postinst,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- ossim-framework.postinst	15 Oct 2008 10:38:26 -0000	1.45
+++ ossim-framework.postinst	15 Oct 2008 10:47:00 -0000	1.46
@@ -47,14 +47,15 @@
 fi
 
 # Fix risk maps perms
-if [ -d "/usr/share/ossim/www/risk_maps/maps" ]; then
-	if [ ! -x /usr/sbin/dpkg-statoverride ] || \
-		! dpkg-statoverride --list /usr/share/ossim/www/risk_maps/maps > /dev/null
-	then
-		chown www-data:www-data /usr/share/ossim/www/risk_maps/maps
-		chmod 0700 /usr/share/ossim/www/risk_maps/maps
+for dir in "/usr/share/ossim/www/risk_maps/maps" "/usr/share/ossim/www/risk_maps/pixmaps/uploaded"; do
+	if [ -d "$dir" ]; then
+		if [ ! -x /usr/sbin/dpkg-statoverride ] || \
+			! dpkg-statoverride --list $dir > /dev/null
+		then
+			chown www-data:www-data $dir
+			chmod 0700 $dir
+		fi
 	fi
-fi
 
 ## Reload ACLS
 ## It needs an /etc/php4/cli/php.ini with mysql extension


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Os-sim-commits mailing list
Os-sim-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/os-sim-commits
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic