From 95c691d200cfc88ba919f7fca1d316f20f62436a Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Fri, 30 Jun 2023 11:54:38 +0000 Subject: T775: Add postcommit-hooks in run directory Use /run/scripts/commit/post-hooks.d directory for scripts generated by "set service config-sync" --- scripts/vyos-user-postcommit-hooks.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/vyos-user-postcommit-hooks.sh b/scripts/vyos-user-postcommit-hooks.sh index 22298a7..84dee58 100644 --- a/scripts/vyos-user-postcommit-hooks.sh +++ b/scripts/vyos-user-postcommit-hooks.sh @@ -3,3 +3,8 @@ if [ -d /config/scripts/commit/post-hooks.d/ ]; then sg vyattacfg -c "/bin/run-parts /config/scripts/commit/post-hooks.d" fi + +# T775 Add commit post-hook for /run +if [ -d /run/scripts/commit/post-hooks.d/ ]; then + sg vyattacfg -c "/bin/run-parts /run/scripts/commit/post-hooks.d" +fi -- cgit v1.2.3