svn commit: r766222 - /ofbiz/trunk/debian/ofbiz-framework.postinst

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r766222 - /ofbiz/trunk/debian/ofbiz-framework.postinst

doogie-3
Author: doogie
Date: Sat Apr 18 05:51:48 2009
New Revision: 766222

URL: http://svn.apache.org/viewvc?rev=766222&view=rev
Log:
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