mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-06 16:58:24 +00:00
rsyslog: change postrm to prerm
The systemd service can't be disabled if it already has been removed, thus disable it prior to removing the package. Signed-off-by: Anders Darander <anders@chargestorm.se> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
committed by
Koen Kooi
parent
db658e9954
commit
dd54be4a2f
@@ -4,7 +4,7 @@ HOMEPAGE = "http://www.rsyslog.com/"
|
||||
LICENSE = "GPLv3"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=51d9635e646fb75e1b74c074f788e973"
|
||||
|
||||
INC_PR = "r0"
|
||||
INC_PR = "r1"
|
||||
|
||||
SRC_URI = "http://www.rsyslog.com/files/download/rsyslog/${PN}-${PV}.tar.gz \
|
||||
file://rsyslog.conf"
|
||||
@@ -25,7 +25,7 @@ pkg_postinst_${PN} () {
|
||||
systemctl enable rsyslog.service
|
||||
}
|
||||
|
||||
pkg_postrm_${PN} () {
|
||||
pkg_prerm_${PN} () {
|
||||
systemctl disable rsyslog.service
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user