[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#792848: cqrlog: fails to remove: invoke-rc.d: unknown initscript, /etc/init.d/apparmor not found.



Thank you Colin! I use you code and add some more changes.

Another problem is after clean install, when the apparmor config file
is empty and includes only comment, cqrlog post install script breaks
whole apparmor configuration. I have for find better solution than
modifying existing file.

73 Petr

2015-08-11 19:27 GMT+02:00 Colin Tuckley <colin@tuckley.org>:
> On 11/08/15 17:54, Petr Hlozek wrote:
>> I don't know how to solve this. The script in post install adds
>> something to apparmor rules and the apparmor has to be restarted.
>
> Yes. The problem seems *not* to be systemd/upstart/init related, it is
> more that apparmor files exist in /etc even when apparmor is not installed.
>
> So you test for the files in /etc/apparmor.d and if they exist you
> assume that apparmor is installed and try to restart it.
>
> I have made a simple patch (attached) that checks to make sure
> /etc/init.d/apparmor exists before executing it.
>
> 73, Colin G8TMV
>
> --
> Colin Tuckley      |  +44(0)1223 830814  |  PGP/GnuPG Key Id
> Debian Developer   |  +44(0)7799 143369  |     0x38C9D903
>



-- 
http://HamQTH.com/ok2cqr
http://ok2cqr.com
http://cqrlog.com
http://cqrtest.com


Reply to: