[Bug 275535] New: OTRS installation procedure
https://bugzilla.novell.com/show_bug.cgi?id=275535 Summary: OTRS installation procedure Product: openSUSE 10.3 Version: Alpha 4 Platform: All OS/Version: openSUSE 10.3 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: diego.ercolani@yacme.com QAContact: qa@suse.de in installation scripts apache2 isn't configured to use mod_perl and this is an error as in /etc/apache2/conf.d/otrs.conf is required mod_perl -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=275535 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |bnc-team-apache@forge.provo.novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=275535 lmuelle@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |lmuelle@novell.com |apache@forge.provo.novell.co| |m | Status|NEW |ASSIGNED ------- Comment #1 from lmuelle@novell.com 2007-05-28 14:04 MST ------- Do you think it's enough to have again one line like the following in the README of the otrs package? 3) Add "perl" to APACHE_MODULES in /etc/sysconfig/apache2. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=275535 lmuelle@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |diego.ercolani@yacme.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=275535 diego.ercolani@yacme.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|diego.ercolani@yacme.com | ------- Comment #2 from diego.ercolani@yacme.com 2007-05-29 08:21 MST ------- Yes, probably if not possible to parse the sysconfig/apache2 line with postinstall script it could be possible to show post install notes after installation, as some package does. a solution for the problem could be something like this in postinstall script: awk '/^\s*APACHE_MODULES=/ { if ( ! match($0,/ perl ?/) ) { sub( "\"\s*$", " perl\""); } } { print; }' /etc/sysconfig/apache2 > /etc/sysconfig/apache2.tmp mv /etc/sysconfig/apache2.tmp /etc/sysconfig/apache2 and a note to restart apache2 ..hope this help Thank you -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=275535 lmuelle@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |diego.ercolani@yacme.com ------- Comment #3 from lmuelle@novell.com 2007-05-29 11:29 MST ------- My brain a sieve. There is already code to handle this in the %post section: OTRS packages newer than 9.3 call '/usr/sbin/a2enmod perl >/dev/null'. Please check if this call doesn't work on your system. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=275535 diego.ercolani@yacme.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|diego.ercolani@yacme.com | ------- Comment #4 from diego.ercolani@yacme.com 2007-05-30 01:58 MST ------- Confirmed, it's called a2enmod but this is the problem: 'ed' command isn't found but sysconf_addword doesn't print normally any errormessage (as there are some redirection of STDERR to /dev/null) and the return value isn't correct as it returns TRUE while procedure have failed. bash -x sysconf_addword -r /etc/sysconfig/apache2 APACHE_MODULES perl + debug=false + case "$1" in + '[' 4 -lt 3 ']' + action=add + case "$1" in + action=remove + shift + file=/etc/sysconfig/apache2 + shift + var=APACHE_MODULES + shift + word=perl + word_quoted=perl + false + false + '[' remove = add ']' + remove_word perl perl + local word=perl + local word_quoted=perl + word_present + . /etc/sysconfig/apache2 ++ APACHE_CONF_INCLUDE_FILES= ++ APACHE_CONF_INCLUDE_DIRS= ++ APACHE_MODULES='actions alias auth_basic authn_file authz_host authz_groupfile authz_default authz_user authn_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php5 perl' ++ APACHE_SERVER_FLAGS= ++ APACHE_HTTPD_CONF= ++ APACHE_MPM= ++ APACHE_SERVERADMIN= ++ APACHE_SERVERNAME= ++ APACHE_START_TIMEOUT=2 ++ APACHE_SERVERSIGNATURE=on ++ APACHE_LOGLEVEL=warn ++ APACHE_ACCESS_LOG='/var/log/apache2/access_log combined' ++ APACHE_USE_CANONICAL_NAME=off ++ APACHE_SERVERTOKENS=OS ++ APACHE_EXTENDED_STATUS=off ++ APACHE_BUFFERED_LOGS=off ++ APACHE_TIMEOUT=300 + case " ${!var} " in + true + false + cat + ed -s /etc/sysconfig/apache2 /usr/sbin/sysconf_addword: line 70: ed: command not found + false + false + exit 0 ----------------------------------- Note: all my considerations is regarded to
rpm -qf /usr/sbin/sysconf_addword apache2-2.2.4-25
so I would like to ask you another thing: as it seem that sysconf_addword isn't limited only to /etc/sysconfig/apache2, why don't you put this utility under aaa_base-10.3-30 ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=275535 lmuelle@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|lmuelle@novell.com |bnc-team-apache@forge.provo.novell.com Status|ASSIGNED |NEW ------- Comment #5 from lmuelle@novell.com 2007-05-30 03:37 MST ------- Apache-maintainers: Looks like ed is missing in the requires of apache2. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=275535 lmuelle@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ro@novell.com ------- Comment #6 from lmuelle@novell.com 2007-05-30 03:42 MST ------- Adding Rudi to cc to evaluate Diego's suggestion from the end of comment #4 regarding the move of sysconf_addword to aaa_base. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=275535 ------- Comment #7 from ro@novell.com 2007-05-30 06:44 MST ------- sounds like a good idea ... except for one thing: what about just using "sed" instead of "ed" ? sed is required by at least 20 packages in a normal system, ed is not required by any package even in my monster installation ... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=275535
Lars Müller
participants (1)
-
bugzilla_noreply@novell.com