Author: doogie
Date: Fri Sep 4 20:50:21 2009
New Revision: 811545
URL:
http://svn.apache.org/viewvc?rev=811545&view=revLog:
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