diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-06-30 11:54:38 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-06-30 12:03:21 +0000 |
commit | 95c691d200cfc88ba919f7fca1d316f20f62436a (patch) | |
tree | a5b573cd63a065a6f3a04230f89f9a6ff77ee521 /scripts | |
parent | 407074ee8e51ee47dfddb91d630c54521777f34f (diff) | |
download | vyatta-cfg-95c691d200cfc88ba919f7fca1d316f20f62436a.tar.gz vyatta-cfg-95c691d200cfc88ba919f7fca1d316f20f62436a.zip |
T775: Add postcommit-hooks in run directory
Use /run/scripts/commit/post-hooks.d directory for scripts generated
by "set service config-sync"
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/vyos-user-postcommit-hooks.sh | 5 |
1 files changed, 5 insertions, 0 deletions
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 |