xbps-triggers: [systemd-service] disable unit when updating at pre-remove time.
This commit is contained in:
parent
f0115a0052
commit
2a7f103564
@ -55,6 +55,10 @@ run)
|
||||
systemctl stop ${_srv} >/dev/null 2>&1 || :
|
||||
echo "Disabling systemd service ${_srv}..."
|
||||
systemctl --no-reload disable ${_srv} >/dev/null 2>&1 || :
|
||||
else
|
||||
# Package update, just disable the unit.
|
||||
echo "Disabling systemd service ${_srv}..."
|
||||
systemctl --no-reload disable ${_srv} >/dev/null 2>&1 || :
|
||||
fi
|
||||
elif [ "$TARGET" = "post-install" ]; then
|
||||
if [ "$UPDATE" = "no" ]; then
|
||||
|
@ -1,6 +1,9 @@
|
||||
# Template file for 'xbps-triggers'
|
||||
pkgname=xbps-triggers
|
||||
version=0.40
|
||||
version=0.41
|
||||
noarch=yes
|
||||
noextract=yes
|
||||
bootstrap=yes
|
||||
short_desc="XBPS triggers"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
homepage="http://code.google.com/p/xbps"
|
||||
@ -8,10 +11,6 @@ license="Simplified BSD"
|
||||
long_desc="
|
||||
This package installs the triggers used by the XBPS binary packages."
|
||||
|
||||
noarch=yes
|
||||
noextract=yes
|
||||
bootstrap=yes
|
||||
|
||||
do_install() {
|
||||
_triggersdir=var/db/xbps/triggers
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user