From 4b40fee978647b7e41382e1d402d411c01a46297 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 7 Apr 2026 15:53:52 +0200 Subject: [PATCH] MT#63742 Hook post-build action into main ngcpcfg script We need to hook the post-build action into the main ngcpcfg script, otherwise we cannot call it standalone, nor get help about it. Fixes: commit ad0cf94b46cb8fc21d9fbd3ce52dbcbbb7566fa7 Change-Id: I9a1173ac88d0f13797b50bad7fdaa3539752a903 --- debian/ngcpcfg.completion | 3 +++ sbin/ngcpcfg | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/debian/ngcpcfg.completion b/debian/ngcpcfg.completion index eeceacfe..9a998ea0 100644 --- a/debian/ngcpcfg.completion +++ b/debian/ngcpcfg.completion @@ -101,6 +101,9 @@ _ngcpcfg() fi return ;; + post-build) + return + ;; pull) return ;; diff --git a/sbin/ngcpcfg b/sbin/ngcpcfg index 81798d35..11164f49 100755 --- a/sbin/ngcpcfg +++ b/sbin/ngcpcfg @@ -50,7 +50,7 @@ usage() { printf "Usage: %s [] Actions: - apply [] a short-cut for build-services-commit + apply [] a short-cut for build/post-build/services/commit build [] generate/update configuration files cat [] print YAML configuration files check [] validate YAML configuration files @@ -64,6 +64,7 @@ Actions: initialise initialise setup (to be executed only once on setup) log [] show log of config changes patch [] create customtt files using patchtt and templates + post-build perform needed actions after building files services [] execute service handlers for modified configuration files set [] set YAML option in defined file show [] show latest config change (or if specified) @@ -173,6 +174,7 @@ case ${1:-} in clean|\ commit|\ encrypt|\ + post-build|\ pull|\ push|\ push-parallel|\