svn commit: r749153 - /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: r749153 - /ofbiz/trunk/debian/ofbiz-framework.postinst

doogie-3
Author: doogie
Date: Mon Mar  2 02:54:24 2009
New Revision: 749153

URL: http://svn.apache.org/viewvc?rev=749153&view=rev
Log:
Set the permissions on the ofbiz home dir so that it is writable by
the correct user.

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=749153&r1=749152&r2=749153&view=diff
==============================================================================
--- ofbiz/trunk/debian/ofbiz-framework.postinst (original)
+++ ofbiz/trunk/debian/ofbiz-framework.postinst Mon Mar  2 02:54:24 2009
@@ -182,6 +182,9 @@
  if ! getent passwd ofbiz 2>/dev/null >/dev/null; then
  adduser --quiet --group --no-create-home --system --home /var/lib/ofbiz ofbiz
  fi
+ dpkg-statoverride --update --add ofbiz ofbiz 755 /var/lib/ofbiz
+ elif dpkg --compare-versions "$2" lt 595296-4; then
+ dpkg-statoverride --update --add ofbiz ofbiz 755 /var/lib/ofbiz
  fi
  if false; then
  cat << _EOF_ > /etc/ofbiz/debconf.cfg.dpkg-new