Hi Alexey, Alexey Svistunov <svalx@svalx.net> writes:
20.11.2024 17:34, Axel Braun пишет:
Hello Alexey,
Am Mittwoch, 20. November 2024, 10:13:28 Mitteleuropäische Normalzeit schrieb Alexey Svistunov:
Did you add the command already to the %post section?
HTH Axel
OBS and chroot build environments does not provide systemd, the build ends with an error: /var/tmp/rpm-tmp.m5llyB: line 7: sysetmctl: command not found warning: %post(timekpr-next-0.5.7-0.noarch) scriptlet failed, exit status 127
The usual approach would be: --8<---------------cut here---------------start------------->8--- if [ -x /usr/bin/systemctl ]; then /usr/bin/systemctl restart foo || : fi --8<---------------cut here---------------end--------------->8--- or use one of the `%service_*` macros if appropriate[1] Cheers, Dan -- Dan Čermák <dcermak@suse.com> Software Engineer Development tools SUSE Software Solutions Germany GmbH Frankenstr. 146 90461 Nürnberg Germany www.suse.com Geschäftsführer: Ivo Totev, Andrew McDonald, Werner Knoblich (HRB 36809, AG Nürnberg) Footnotes: [1] https://en.opensuse.org/openSUSE:Systemd_packaging_guidelines