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