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"