mirror of
https://github.com/clearlinux/clr-update-triggers.git
synced 2026-06-16 02:55:48 +00:00
15 lines
329 B
Bash
Executable File
15 lines
329 B
Bash
Executable File
#!/bin/bash
|
|
|
|
prefix="$1"
|
|
|
|
# Try to run all hooks in /usr/libexec/updater
|
|
for f in "${prefix}"/usr/libexec/updater/*hook.sh ; do
|
|
if [ -x "$f" ] && [ -f "$f" ]; then
|
|
if [ "$prefix" == "/" ]; then
|
|
"$f" &> /dev/null
|
|
else
|
|
chroot "$prefix" "${f#$prefix}" &> /dev/null
|
|
fi
|
|
fi
|
|
done
|