Package: squid
Version: 4.13-5
Severity: serious
File: /usr/sbin/squid

Hi!

Today I tried to move from squid to squid-nossl and clean up afterwards, it
all went ok when I did the installation of squid-openssl, squid got removed
and everything worked as expected, but when I purged squid with
squid-openssl installed, squid postrm script did...

# dpkg --purge squid
(A ler a base de datos ... 605846 files and directories currently installed.)
Purging configuration files for squid (4.13-5) ...
Purging logfiles...
Removing the config-file ..
Please, remove /var/spool/squid yourself.

Which means that it removed squid.conf and the log directory without asking
anything, it is curious that it left the cache files around for me to
remove, but removed all the usefull info I had around.

The code in question is this:

                echo "Purging logfiles..."
                rm -rf /var/log/squid

                if [ -f /etc/squid/squid.conf ]; then
                        echo "Removing the config-file .."
                        rm -f /etc/squid/squid.conf
                fi

The problem here is... how to we deal with this?

Regards...


-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 
'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-4-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=gl_ES.UTF-8, LC_CTYPE=gl_ES.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages squid-openssl depends on:
ii  adduser                  3.118
ii  init-system-helpers      1.60
ii  libc6                    2.31-9
ii  libcap2                  1:2.44-1
ii  libcom-err2              1.46.2-1
ii  libcrypt1                1:4.4.17-1
ii  libdb5.3                 5.3.28+dfsg1-0.8
ii  libdbi-perl              1.643-3+b1
ii  libecap3                 1.0.1-3.2+b1
ii  libexpat1                2.2.10-2
ii  libgcc-s1                10.2.1-6
ii  libgssapi-krb5-2         1.18.3-4
ii  libkrb5-3                1.18.3-4
ii  libldap-2.4-2            2.4.57+dfsg-2
ii  libltdl7                 2.4.6-15
ii  libnetfilter-conntrack3  1.0.8-3
ii  libnettle8               3.7-2.1
ii  libnsl2                  1.3.0-2
ii  libpam0g                 1.4.0-6
ii  libsasl2-2               2.1.27+dfsg-2.1
ii  libssl1.1                1.1.1j-1
ii  libstdc++6               10.2.1-6
ii  libsystemd0              247.3-1
ii  libxml2                  2.9.10+dfsg-6.3+b1
ii  logrotate                3.18.0-2
ii  lsb-base                 11.1.0
ii  netbase                  6.2
ii  squid-common             4.13-5

Versions of packages squid-openssl recommends:
ii  ca-certificates  20210119
ii  libcap2-bin      1:2.44-1

Versions of packages squid-openssl suggests:
ii  apparmor     2.13.6-9
pn  resolvconf   <none>
pn  smbclient    <none>
pn  squid-cgi    <none>
pn  squid-purge  <none>
pn  squidclient  <none>
pn  ufw          <none>
pn  winbind      <none>

-- Configuration Files:
/etc/squid/squid.conf [Errno 2] Non hai tal ficheiro ou directorio: 
'/etc/squid/squid.conf'

-- no debconf information

Reply via email to