View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000431 | bareos-core | webui | public | 2015-03-05 11:51 | 2015-07-13 12:02 |
Reporter | frank | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
OS | RHEL, CentOS, Fedora | ||||
Summary | 0000431: RPM postinstall script on RHEL, CentOS and Fedora not working | ||||
Description | Scriptlet tries to use a2enmod. The problem is that RHEL, Centos and Fedora (at least) does not implement (and never will) a2enmod and thus the scriptlet is plain wrong for these distros and will work only on debian based distros. | ||||
Additional Information | To eliminate that warning, we need to do something like this in the postinstall part of the *.spec file, see: https://github.com/bareos/bareos-webui/blob/master/packaging/obs/bareos-webui.spec (Line:79). %post %if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version} # enable httpd mod_php5, # mod_rewrite, # mod_env || mod_setenv # if not already enabled %if 0%{?suse_version} a2enmod setenv &> /dev/null a2enmod rewrite &> /dev/null a2enmod php5 &> /dev/null %endif Debian/Ubuntu postinstall is handled in https://github.com/bareos/bareos-webui/blob/master/debian/postinst Further reading: https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto | ||||
Tags | No tags attached. | ||||
Acknowledged | |
yum install bareos-webui bareos-webui 14.2.0.git.1425285136-49.2.el7.noarch.rpm | 602 kB 00:00:06 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : bareos-webui-14.2.0.git.1425285136-49.2.el7.noarch 1/1 warning: %post(bareos-webui-14.2.0.git.1425285136-49.2.el7.noarch) scriptlet failed, exit status 127 Non-fatal POSTIN scriptlet failure in rpm package bareos-webui-14.2.0.git.1425285136-49.2.el7.noarch Verifying : bareos-webui-14.2.0.git.1425285136-49.2.el7.noarch 1/1 Installed: bareos-webui.noarch 0:14.2.0.git.1425285136-49.2.el7 |
|
Fix committed to bareos-webui master branch with changesetid 2914. | |
bareos-webui: master 3e7e48ec 2015-03-05 13:34 Ported: N/A Details Diff |
Packaging fix Supresses rpm warnings thrown on rhel, centos, fedora as a2enmod is not available. Fixes 0000431: RPM postinstall script on RHEL, CentOS and Fedora not working |
Affected Issues 0000431 |
|
mod - packaging/obs/bareos-webui.spec | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2015-03-05 11:51 | frank | New Issue | |
2015-03-05 11:51 | frank | Status | new => assigned |
2015-03-05 11:51 | frank | Assigned To | => frank |
2015-03-05 11:56 | frank | Note Added: 0001296 | |
2015-03-05 11:56 | frank | Status | assigned => acknowledged |
2015-03-05 11:59 | frank | Note Added: 0001297 | |
2015-03-05 13:40 | frank | Changeset attached | => bareos-webui master 3e7e48ec |
2015-03-05 13:40 | frank | Note Added: 0001298 | |
2015-03-05 13:40 | frank | Status | acknowledged => resolved |
2015-03-05 13:40 | frank | Resolution | open => fixed |
2015-03-31 15:26 |
|
Assigned To | frank => |
2015-04-17 15:35 | frank | Status | resolved => closed |
2015-04-17 15:35 | frank | Assigned To | => frank |
2015-07-13 12:02 | joergs | Assigned To | frank => |