Author: doogie
Date: Sat Apr 18 05:51:48 2009
New Revision: 766222
URL:
http://svn.apache.org/viewvc?rev=766222&view=revLog:
Protect dpkg-statoverride call on /var/lib/ofbiz, incase it's already
been done.
Modified:
ofbiz/trunk/debian/ofbiz-framework.postinst
Modified: ofbiz/trunk/debian/ofbiz-framework.postinst
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/debian/ofbiz-framework.postinst?rev=766222&r1=766221&r2=766222&view=diff==============================================================================
--- ofbiz/trunk/debian/ofbiz-framework.postinst (original)
+++ ofbiz/trunk/debian/ofbiz-framework.postinst Sat Apr 18 05:51:48 2009
@@ -216,7 +216,9 @@
if ! getent passwd ofbiz 2>/dev/null >/dev/null; then
adduser --quiet --group --no-create-home --system --shell /bin/sh --home /var/lib/ofbiz ofbiz
fi
- dpkg-statoverride --update --add ofbiz ofbiz 755 /var/lib/ofbiz
+ if ! dpkg-statoverride --list "/var/lib/ofbiz" > /dev/null; then
+ dpkg-statoverride --update --add ofbiz ofbiz 755 /var/lib/ofbiz
+ fi
fi
;;
esac