Am 04.03.2015 um 22:13 schrieb Hilario Fochi:
> I checked inside the rpm and it looks like the 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.
> 
> The lines that I could see on the scriptlets are those:
> postinstall scriptlet (using /bin/sh):
> a2enmod setenv &> /dev/null
> a2enmod rewrite &> /dev/null
> a2enmod php5 &> /dev/null
> 
> At the moment of this writing I still do not have a solution for that.
> 

Hi Hilario,

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

I have opened a ticket in the bugtracker
http://bugs.bareos.org/view.php?id=431, if you would like to contribute,
you are welcome.

Regards,
Frank

-- 
Frank Bergkemper                           [email protected]
dass IT GmbH                               Phone:  +49.221.3565666-94
http://www.dass-IT.de/                     Fax  : +49.221.3565666-10

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRB52500
GF: Stephan Dühr, Maik Außendorf, Jörg Steffens, Philipp Storz

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to