fixing run order of hooks
This commit is contained in:
parent
340dd9a179
commit
d18b703572
@ -331,9 +331,10 @@ pacman -U --noconfirm /var/cache/pacman/pkg/ca-certificates-utils-*.pkg.tar.xz
|
|||||||
|
|
||||||
# run the hooks
|
# run the hooks
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
for hook in /root/hooks/*; do
|
for hook in ${Hooks[@]}; do
|
||||||
echo "[hooks.sh] running hook: '\$(basename \$hook)'"
|
hook="\$(basename "\$hook")"
|
||||||
source "\$hook"
|
echo "[hooks.sh] running hook: '\$hook'"
|
||||||
|
source /root/hooks/"\$hook"
|
||||||
done
|
done
|
||||||
shopt -u nullglob
|
shopt -u nullglob
|
||||||
|
|
||||||
@ -347,7 +348,6 @@ rm -f /var/cache/pacman/pkg/*
|
|||||||
|
|
||||||
# report success :)
|
# report success :)
|
||||||
echo "$PVM_HOOKS_SUCCESS_MSG - powering off"
|
echo "$PVM_HOOKS_SUCCESS_MSG - powering off"
|
||||||
[[ -e "/usr/lib/libretools/common.sh" ]] && rm -f /usr/lib/libretools/common.sh
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# create a pre-init service to run the hooks
|
# create a pre-init service to run the hooks
|
||||||
|
Loading…
Reference in New Issue
Block a user