Package packagekit: Скрипты

Post install

SYSTEMCTL=systemctl
if sd_booted && "$SYSTEMCTL" --version >/dev/null 2>&1; then
	"$SYSTEMCTL" daemon-reload
	if [ "$RPM_INSTALL_ARG1" -eq 1 ]; then
		"$SYSTEMCTL" -q preset packagekit
	else
		# only request stop of service, don't restart it
		"$SYSTEMCTL" is-active --quiet packagekit && /usr/bin/pkcon quit ||:
	fi
fi
Pre uninstall

/usr/sbin/preun_service packagekit ||: