[3/3] cups: Reload dbus to load/unload policy
Commit Message
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
src/paks/cups/install.sh | 1 +
src/paks/cups/uninstall.sh | 1 +
2 files changed, 2 insertions(+)
Comments
Hi Michael,
Doesn't this patch also require the pak_ver to be incremented as was done for the avahi addon?
Regards,
Adolf.
On 21/07/2021 16:41, Michael Tremer wrote:
> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
> ---
> src/paks/cups/install.sh | 1 +
> src/paks/cups/uninstall.sh | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/src/paks/cups/install.sh b/src/paks/cups/install.sh
> index 38715f9e8..b3f0f1368 100644
> --- a/src/paks/cups/install.sh
> +++ b/src/paks/cups/install.sh
> @@ -23,6 +23,7 @@
> #
> . /opt/pakfire/lib/functions.sh
> extract_files
> +/etc/init.d/messagebus reload
> start_service --delay 300 --background ${NAME}
> ln -svf ../init.d/cups /etc/rc.d/rc0.d/K00cups
> ln -svf ../init.d/cups /etc/rc.d/rc3.d/S25cups
> diff --git a/src/paks/cups/uninstall.sh b/src/paks/cups/uninstall.sh
> index 744c2062d..01b13de76 100644
> --- a/src/paks/cups/uninstall.sh
> +++ b/src/paks/cups/uninstall.sh
> @@ -25,3 +25,4 @@
> stop_service ${NAME}
> remove_files
> rm -rf /etc/rc.d/rc*.d/*cups
> +/etc/init.d/messagebus reload
Yes it does, I forgot :( Thank you for letting me know.
Since this is merged, I will send another patch.
-Michael
> On 22 Jul 2021, at 20:18, Adolf Belka <adolf.belka@ipfire.org> wrote:
>
> Hi Michael,
>
> Doesn't this patch also require the pak_ver to be incremented as was done for the avahi addon?
>
> Regards,
>
> Adolf.
>
> On 21/07/2021 16:41, Michael Tremer wrote:
>> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
>> ---
>> src/paks/cups/install.sh | 1 +
>> src/paks/cups/uninstall.sh | 1 +
>> 2 files changed, 2 insertions(+)
>>
>> diff --git a/src/paks/cups/install.sh b/src/paks/cups/install.sh
>> index 38715f9e8..b3f0f1368 100644
>> --- a/src/paks/cups/install.sh
>> +++ b/src/paks/cups/install.sh
>> @@ -23,6 +23,7 @@
>> #
>> . /opt/pakfire/lib/functions.sh
>> extract_files
>> +/etc/init.d/messagebus reload
>> start_service --delay 300 --background ${NAME}
>> ln -svf ../init.d/cups /etc/rc.d/rc0.d/K00cups
>> ln -svf ../init.d/cups /etc/rc.d/rc3.d/S25cups
>> diff --git a/src/paks/cups/uninstall.sh b/src/paks/cups/uninstall.sh
>> index 744c2062d..01b13de76 100644
>> --- a/src/paks/cups/uninstall.sh
>> +++ b/src/paks/cups/uninstall.sh
>> @@ -25,3 +25,4 @@
>> stop_service ${NAME}
>> remove_files
>> rm -rf /etc/rc.d/rc*.d/*cups
>> +/etc/init.d/messagebus reload
@@ -23,6 +23,7 @@
#
. /opt/pakfire/lib/functions.sh
extract_files
+/etc/init.d/messagebus reload
start_service --delay 300 --background ${NAME}
ln -svf ../init.d/cups /etc/rc.d/rc0.d/K00cups
ln -svf ../init.d/cups /etc/rc.d/rc3.d/S25cups
@@ -25,3 +25,4 @@
stop_service ${NAME}
remove_files
rm -rf /etc/rc.d/rc*.d/*cups
+/etc/init.d/messagebus reload