commit b4fe195b9eca6320c88f5235f2041adb299969b1
Author: Elan Ruusamäe <[email protected]>
Date: Wed May 8 19:16:46 2013 +0300
postun setup: avoid chmod if files are gone (main package removal)
eventum.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/eventum.spec b/eventum.spec
index 44c09cd..75328d3 100644
--- a/eventum.spec
+++ b/eventum.spec
@@ -608,7 +608,7 @@ chmod 660 %{_webappdir}/{config,private_key}.php
chown root:http %{_webappdir}/{config,private_key}.php
%postun setup
-if [ "$1" = "0" ]; then
+if [ "$1" = "0" ] && [ -f %{_webappdir}/config.php ]; then
chmod 640 %{_webappdir}/{config,private_key}.php
chown root:http %{_webappdir}/{config,private_key}.php
fi
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/eventum.git/commitdiff/b4fe195b9eca6320c88f5235f2041adb299969b1
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit