Bug 1106516 - mod_snmp.conf configuration in .postinstall makes postinstall non-reentrant
Summary: mod_snmp.conf configuration in .postinstall makes postinstall non-reentrant
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss Enterprise Web Server 2
Classification: JBoss
Component: httpd
Version: 2.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ER03
: 2.1.0
Assignee: Weinan Li
QA Contact: Michal Karm Babacek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-09 14:22 UTC by Michal Karm Babacek
Modified: 2019-06-13 12:09 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-06-13 12:09:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michal Karm Babacek 2014-06-09 14:22:39 UTC
Re-running .postinstall keeps prepending currentDir indefinitely.

Patch that fixes the issue:


--- jboss-ews-2.1/httpd/.postinstall    2014-06-04 03:09:09.000000000 -0400
+++ jboss-ews-2.1/httpd/.postinstall    2014-06-09 10:12:20.574001111 -0400
@@ -45,7 +45,7 @@
 #JBPAPP-9746
 if [ -f 'conf.d/mod_snmp.conf' ]; then
     mkdir -p $currentDir/var/cache/mod_snmp
-    sed -i -e "s:/var/cache/mod_snmp:$currentDir/var/cache/mod_snmp:" conf.d/mod_snmp.conf
+    sed -i -e "s:SNMPVar /var/cache/mod_snmp:SNMPVar $currentDir/var/cache/mod_snmp:" conf.d/mod_snmp.conf
 fi

 #for mod_nss

Comment 1 Dustin Kut Moy Cheung 2014-06-09 21:06:33 UTC
Commited and pushed fix to rpm repo jboss-ews for branch jb-eap-6-rhel-6, jb-eap-6-rhel-7, and ep-6-rhel-5.

Rebuild required for fix to apply.

Comment 2 Weinan Li 2014-06-10 02:59:02 UTC
(In reply to Dustin Kut Moy Cheung from comment #1)
> Commited and pushed fix to rpm repo jboss-ews for branch jb-eap-6-rhel-6,
> jb-eap-6-rhel-7, and ep-6-rhel-5.
> 
> Rebuild required for fix to apply.

Thanks for help Dustin! btw, jboss-ews el5 and el6 branches are merged, no need to work on ep-6-rhel-5 in the future :-)

Comment 3 Michal Karm Babacek 2014-06-24 12:05:33 UTC
Verified, THX.


Note You need to log in before you can comment on or make changes to this bug.