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

doogie-3
Author: doogie
Date: Fri Sep  4 20:50:21 2009
New Revision: 811545

URL: http://svn.apache.org/viewvc?rev=811545&view=rev
Log:
Chown debconf.cfg after the ofbiz group is created.

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=811545&r1=811544&r2=811545&view=diff
==============================================================================
--- ofbiz/trunk/debian/ofbiz-framework.postinst (original)
+++ ofbiz/trunk/debian/ofbiz-framework.postinst Fri Sep  4 20:50:21 2009
@@ -104,7 +104,6 @@
  . /etc/ofbiz/dbc-debconf.cfg
 fi
 if [ -r "/etc/ofbiz/debconf.cfg" ]; then
- chown root:ofbiz "/etc/ofbiz/debconf.cfg"
  eval `sed -n 's/^ofbiz\.admin\.\(port\|key\)=\(.*\)/ofbiz_admin_\1=\2;/p' "/etc/ofbiz/debconf.cfg" `
 fi
 if [ "$1" = "triggered" ]; then
@@ -149,6 +148,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
+ if [ -r "/etc/ofbiz/debconf.cfg" ]; then
+ chown root:ofbiz "/etc/ofbiz/debconf.cfg"
+ fi
  if ! dpkg-statoverride --list "/var/lib/ofbiz" > /dev/null; then
  dpkg-statoverride --update --add ofbiz ofbiz 755 /var/lib/ofbiz
  fi