1 ca-certificates is a package from Debian, but some host distros such as Fedora
2 have a leaner run-parts provided by cron which doesn't support --verbose or the
3 -- separator between arguments and paths.
5 This solves errors such as
7 | Running hooks in [...]/rootfs/etc/ca-certificates/update.d...
8 | [...]/usr/sbin/update-ca-certificates: line 194: Not: command not found
9 | [...]/usr/sbin/update-ca-certificates: line 230: Not a directory: --: command not found
10 | E: Not a directory: -- exited with code 127.
13 Upstream-Status: Inappropriate
14 Signed-off-by: Ross Burton <ross.burton@intel.com>
15 Signed-off-by: Maciej Borzecki <maciej.borzecki@rndity.com>
17 sbin/update-ca-certificates | 4 +---
18 1 file changed, 1 insertion(+), 3 deletions(-)
20 Index: git/sbin/update-ca-certificates
21 ===================================================================
22 --- git.orig/sbin/update-ca-certificates
23 +++ git/sbin/update-ca-certificates
24 @@ -191,9 +191,7 @@ if [ -d "$HOOKSDIR" ]
27 echo "Running hooks in $HOOKSDIR..."
29 - [ "$verbose" = 0 ] || VERBOSE_ARG="--verbose"
30 - eval run-parts "$VERBOSE_ARG" --test -- "$HOOKSDIR" | while read hook
31 + eval run-parts --test "$HOOKSDIR" | while read hook
34 cat "$REMOVED" ) | "$hook" || echo "E: $hook exited with code $?."