🍽 Fork YunoHost — snapshot mangé par la machine à tsoins
Some checks failed
Check for new n releases / updater (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled

Upstream: https://github.com/YunoHost/yunohost @ 3a5f8bac8301c450897b96cbd43a4c7d3ba750fb
But (José) : transformer tout le code en bions + ploxions du xerboxion.
La carte de digestion vit au labo : /yunohost-digest.json
This commit is contained in:
machine-a-tsoins
2026-07-03 17:20:06 +00:00
commit edb4c397df
395 changed files with 105504 additions and 0 deletions

20
share/yunohost-nftables-hooks Executable file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env bash
HOOK_FOLDER="/usr/share/yunohost/hooks/"
CUSTOM_HOOK_FOLDER="/etc/yunohost/hooks.d/"
run_parts() {
dir="$1"
if [ -d "$dir" ]; then
run-parts "$dir"
fi
}
pre_or_post="${1:-pre}"
run_parts "$HOOK_FOLDER/${pre_or_post}_nftables"
run_parts "$CUSTOM_HOOK_FOLDER/${pre_or_post}_nftables"
# This one is legacy, apps should use the new ${pre_or_post}_nftables hook
run_parts "$HOOK_FOLDER/${pre_or_post}_iptable_rules"
run_parts "$CUSTOM_HOOK_FOLDER/${pre_or_post}_iptable_rules"