Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=669c596d20e9638dd32eeee554a555dc34d4948c

commit 669c596d20e9638dd32eeee554a555dc34d4948c
Author: crazy <[email protected]>
Date:   Wed Apr 27 17:59:51 2016 +0200

lvm2-2.02.151-2-x86_64
* fix install scriptlet
* we don't use sysvinit_units here

diff --git a/source/base/lvm2/FrugalBuild b/source/base/lvm2/FrugalBuild
index 9ef3665..c504add 100644
--- a/source/base/lvm2/FrugalBuild
+++ b/source/base/lvm2/FrugalBuild
@@ -6,7 +6,7 @@ pkgname=lvm2
_F_archive_name="LVM2"
Fpkgversep="."
pkgver=2.02.151
-pkgrel=1
+pkgrel=2
pkgdesc="Logical Volume Manager 2 utilities"
url="http://sources.redhat.com/lvm2/";
rodepends=("$pkgname-libs")
diff --git a/source/base/lvm2/lvm2.install b/source/base/lvm2/lvm2.install
index d988eb3..255b674e 100644
--- a/source/base/lvm2/lvm2.install
+++ b/source/base/lvm2/lvm2.install
@@ -1,14 +1,10 @@
-sysvinit_units=(@_F_sysvinit_units@)
systemd_units=(@_F_systemd_units@)

post_install()
{
local unit
local op
-
-       for i in ${sysvinit_units[@]}; do
-               chkconfig --del rc.$i >/dev/null 2>&1
-       done
+       local i

for i in ${systemd_units[@]}; do
unit=$(echo $i | cut -f 1 -d '=')
@@ -24,9 +20,6 @@ post_install()

post_upgrade()
{
-       for i in ${sysvinit_units[@]}; do
-               chkconfig --del rc.$i >/dev/null 2>&1
-       done

systemctl daemon-reload >/dev/null 2>&1

@@ -36,10 +29,7 @@ post_upgrade()
pre_remove()
{
local unit
-
-       for i in ${sysvinit_units[@]}; do
-               chkconfig --del rc.$i >/dev/null 2>&1
-       done
+       local i

for i in ${systemd_units[@]}; do
unit=$(echo $i | cut -f 1 -d '=')
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to