xbps-triggers: [systemd-update] register unit at post-update time.

This commit is contained in:
Juan RP 2012-06-02 13:00:53 +02:00
parent 9c0f8d48b1
commit c71f5b085f
2 changed files with 4 additions and 1 deletions

View file

@ -88,6 +88,9 @@ Refer to the systemd documentation if more information is required.
==========================================================================
_EOF
else
# Enable the unit in case it wasn't added.
systemctl enable ${_srv} >/dev/null 2>&1 || :
# package is being updated.
if [ -n "$system_booted" ]; then
# reload systemd if running.

View file

@ -1,6 +1,6 @@
# Template file for 'xbps-triggers'
pkgname=xbps-triggers
version=0.41
version=0.42
noarch=yes
noextract=yes
bootstrap=yes