[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#2051: /etc/ntp.conf is an auto-handled conffile



Package: xntp
Version: 3.4x-2

The ntp.conf file is modified (correctly) by the postinst after
installation.  This causes a conffiles conflict when the package is
upgraded.

I suggest that the package not use dpkg to install the file, but
instead create it itself if it doesn't exist; any changes which need
to be made during upgrades would have to be done manually.

Ian.

-chiark:~/download> really dpkg -i xntp-3.4x-2.deb
(Reading database ... 17436 files and directories currently installed.)
Preparing to replace xntp (using xntp-3.4x-2.deb) ...
Unpacking replacement xntp ...
Setting up xntp ...

Configuration file `/etc/ntp.conf'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** ntp.conf (Y/I/N/O/Z) [default=N] ? y
Installing new version of config file /etc/ntp.conf ...
Please enter the address of your NTP server.
Just hit enter if you don't know it now, and you can edit
the server line in /etc/ntp.conf later.
> ntp0.csx.cam.ac.uk
starting /usr/sbin/xntpd ...

-chiark:~/download>


Reply to: