From 5a327261b24e6bab13b79bfd62b468b18e58609d Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Fri, 21 Feb 2014 16:45:51 +0400 Subject: [PATCH] Enable SysV symlinks only during install See also: https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Syntax Signed-off-by: Peter Lemenkov --- el/mediaproxy-ng.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/el/mediaproxy-ng.spec b/el/mediaproxy-ng.spec index 0aa4a636e..ed8ae8489 100644 --- a/el/mediaproxy-ng.spec +++ b/el/mediaproxy-ng.spec @@ -114,7 +114,9 @@ rm -rf %{buildroot} %post -/sbin/chkconfig --add mediaproxy-ng +if [ $1 -eq 1 ]; then + /sbin/chkconfig --add %{name} || : +fi %post dkms