Hi,

Andrey Rahmatullin:
> /etc/ca-certificates/update.d/mono-keystore: 10:
> /etc/ca-certificates/update.d/mono-keystore: /usr/bin/cert-sync: not
> found

> This is because when the package is removed, /usr/bin/cert-sync doesn't exist
> but the hook script wants to use it.

FTR this confusing output is displayed not only when removing this
package, but also every time hooks in /etc/ca-certificates/update.d
are run when ca-certificates-mono is deinstalled but not purged.

What about making /etc/ca-certificates/update.d/mono-keystore check
whether /usr/bin/cert-sync exists before doing anything else, and exit
silently if it doesn't? That's for example what most of the scripts
I see in my /etc/cron.daily/ do.

The beginning of the script would then look like:

  set -e

  [ -n /usr/bin/cert-sync ] || exit 0

  echo "Updating Mono key store"

Cheers,
-- 
intrigeri

Reply via email to