hooks.d/after-upgrade*
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
hooks.d/*
|
||||||
|
|||||||
+15
-3
@@ -134,7 +134,7 @@ function link_config_files {
|
|||||||
|
|
||||||
function force_reload {
|
function force_reload {
|
||||||
bind -f /etc/inputrc 2>/dev/null # arch: dismiss harmless warning
|
bind -f /etc/inputrc 2>/dev/null # arch: dismiss harmless warning
|
||||||
source /etc/profile
|
# source /etc/profile
|
||||||
}
|
}
|
||||||
|
|
||||||
function in_azerty_zone {
|
function in_azerty_zone {
|
||||||
@@ -210,9 +210,20 @@ function create_sudoers {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function launch_hooks {
|
||||||
|
find "$MIAOU_BASH_DIR"/hooks.d -maxdepth 1 -name "after-upgrade*" -type f -executable |
|
||||||
|
sort |
|
||||||
|
while read -r hook; do
|
||||||
|
echo "Processing: $hook"
|
||||||
|
|
||||||
|
# shellcheck disable=SC1090
|
||||||
|
source "$hook"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
||||||
source "$MIAOU_BASH_DIR/lib/functions.bash"
|
source "$MIAOU_BASH_DIR"/lib/functions.bash
|
||||||
|
|
||||||
assert_root
|
assert_root
|
||||||
DISTRO_LIKE=$(fetch_distro_like)
|
DISTRO_LIKE=$(fetch_distro_like)
|
||||||
@@ -223,4 +234,5 @@ ghostty_global_config
|
|||||||
link_config_files
|
link_config_files
|
||||||
link_miaou_bash
|
link_miaou_bash
|
||||||
create_sudoers
|
create_sudoers
|
||||||
force_reload
|
launch_hooks
|
||||||
|
# force_reload
|
||||||
|
|||||||
Reference in New Issue
Block a user