Don't overwite config files in RPM (bug #2036)
authorMark Spencer <markster@digium.com>
Wed, 14 Jul 2004 07:14:20 +0000 (07:14 +0000)
committerMark Spencer <markster@digium.com>
Wed, 14 Jul 2004 07:14:20 +0000 (07:14 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3427 65c4cc65-6c06-0410-ace0-fbb531ad65f3

redhat/asterisk.spec

index 446aeec..592f354 100755 (executable)
@@ -28,9 +28,9 @@ ln -sf /var/spool/asterisk/vm /var/lib/asterisk/sounds/vm
 #
 # Configuration files
 #
-%attr(0755,root,root) %dir    /etc/asterisk
-%attr(0640,root,root) %config /etc/asterisk/*.conf
-%attr(0640,root,root) %config /etc/asterisk/*.adsi
+%attr(0755,root,root) %dir    %{_sysconfdir}/asterisk
+%config(noreplace) %attr(0640,root,root) %{_sysconfdir}/asterisk/*.conf
+%config(noreplace) %attr(0640,root,root) %{_sysconfdir}/asterisk/*.adsi
 
 #
 # RedHat specific init script file