Fix pathname for running hooks in lb_chroot_hooks.
lb_chroot_hooks would copy the hooks to run to
chroot/root/lb_chroot_hooks, but then try to run them from chroot/root
(which obviously fails). This means lb_chroot_hooks has not been working
for hooks from /usr/share/live/build/hooks since lb_chroot_hooks was
added in revision e4793268
. Running hooks from the config directory was
unaffected.
This commit is contained in:
parent
dbe6a82bc0
commit
ea491a1a1a
|
@ -55,8 +55,8 @@ if ls chroot/root/lb_chroot_hooks/* > /dev/null 2>&1
|
|||
then
|
||||
for _HOOK in chroot/root/lb_chroot_hooks/*
|
||||
do
|
||||
Chroot chroot "/root/$(basename ${_HOOK})" || { Echo_error "${_HOOK} failed (exit non-zero). You should check for errors."; exit 1 ;}
|
||||
rm -f chroot/root/"$(basename ${_HOOK})"
|
||||
Chroot chroot "/root/lb_chroot_hooks/$(basename ${_HOOK})" || { Echo_error "${_HOOK} failed (exit non-zero). You should check for errors."; exit 1 ;}
|
||||
rm -f chroot/root/lb_chroot_hooks/"$(basename ${_HOOK})"
|
||||
done
|
||||
|
||||
rmdir chroot/root/lb_chroot_hooks
|
||||
|
|
Loading…
Reference in New Issue