From 5709050d024a0cc389c39d7b68d962ebe24f11b1 Mon Sep 17 00:00:00 2001 From: Tau Date: Wed, 10 Jul 2024 00:45:11 +0200 Subject: [PATCH] fixes incorrect ordering of init hooks --- includes.container/usr/sbin/init.new | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes.container/usr/sbin/init.new b/includes.container/usr/sbin/init.new index a03049a..aa5cadf 100644 --- a/includes.container/usr/sbin/init.new +++ b/includes.container/usr/sbin/init.new @@ -33,7 +33,7 @@ run_hooks() { return fi - hooks=($(find "$path" -type f 2>/dev/null)) + hooks=($(find "$path" -type f 2>/dev/null | sort)) if [[ ${#hooks[@]} -eq 0 ]]; then log "warn" "No hooks found in $path"