]> git.pld-linux.org Git - packages/dcd.git/commitdiff
- added trigger to let it work after upgrade
authorPaweł Gołaszewski <blues@pld-linux.org>
Wed, 22 Dec 2004 13:27:53 +0000 (13:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dcd.spec -> 1.60

dcd.spec

index 9f869708b393f273dc147667a1ba3e0160975f18..59aa81734e5abe5ffec942faaa3b9a7c85388da1 100644 (file)
--- a/dcd.spec
+++ b/dcd.spec
@@ -2,7 +2,7 @@ Summary:        DConnect Daemon - Hub D****ct Connect for Linux
 Summary(pl):   DConnect Daemon - Hub D****ct Connecta dla Linuksa
 Name:          dcd
 Version:       0.4.7
-Release:       0.1
+Release:       0.2
 License:       GPL v2
 Group:         Networking/Daemons
 Vendor:                DConnect Team <dc-hub@ds.pg.gda.pl>
@@ -81,6 +81,13 @@ cp /etc/dcd/dcd.conf /etc/dcd/dcd.conf.rpmsave
 sed -e s/console.users/dcd.users/g /etc/dcd/dcd.conf >/etc/dcd/dcd.conf.tmp
 mv -f /etc/dcd/dcd.conf.tmp /etc/dcd/dcd.conf
 
+%triggerpostun -- dcd < 0.4.6
+echo "Upgrading from version < 0.4.6"
+if [ -e /etc/dcd/dcd.conf ]; then
+       cp /etc/dcd/dcd.conf /etc/dcd/dcd.conf.save
+       sed -i -e 's/minimum_sleep_time\b/minimal_sleep_time/' /etc/dcd/dcd.conf
+fi     
+
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS BUGS FAQ NEWS README TODO doc/*.html
This page took 0.088739 seconds and 4 git commands to generate.