> Now that I have gone over this again... it should have been .dpkg-dist, not
> .dpkg-new, which is how dpkg unpacks the original file, not how it keeps it
> if we say we want to keep user settings.

I have done a final test doing a move /etc/squid/squid.conf to
/etc/squid/squid.conf.pre_3.4_upgrade at preinst and then at postinst I
moved /etc/squid/squid.conf (the newly installed conf) to
/etc/squid/squid.conf.dpkg-dist and also a sed of
/etc/squid/squid.conf.pre_3.4_upgrade > /etc/squid/squid.conf

The result on /ets/squid was:
-rw------- 1 root root 169404 Out 28 19:34 squid.conf.pre_3.4_upgrade
-rw-r--r-- 1 root root   1817 Out 28 19:53 errorpage.css
-rw-r--r-- 1 root root 285765 Out 28 21:34 squid.conf.dpkg-dist
-rw-r--r-- 1 root root 169440 Out 28 21:34 squid.conf

The output messages were the same ones as yesterday, with squid running at
the end using the config file generated from the old squid.conf file.

Regards.
-- 
Manty/BestiaTester -> http://manty.net

Reply via email to