gemi bluewin ch (Gérard Milmeister) writes:
> %post
> /usr/sbin/semanage fcontext -a -t textrel_shlib_t "%{_libdir}/gcl-%{version}/unixport/saved_ansi_gcl"
> /sbin/restorecon "%{_libdir}/gcl-%{version}/unixport/saved_ansi_gcl"
> %postun
> /usr/sbin/semanage fcontext -d -t textrel_shlib_t "%{_libdir}/gcl-%{version}/unixport/saved_ansi_gcl"
>
> Is this acceptable?
You should add a '|| :' after each command to avoid problems when SELinux
is disabled or when /usr is mounted read-only.
Enrico
Attachment:
pgpHQOKI3OrJO.pgp
Description: PGP signature