From 5e875b76c73e28225e5dc0dc0f30abb113305cad Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Fri, 3 Apr 2015 20:13:57 +0200 Subject: Bug #538: add scripts for running user commit hooks. --- scripts/vyos-user-postcommit-hooks.sh | 5 +++++ scripts/vyos-user-precommit-hooks.sh | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 scripts/vyos-user-postcommit-hooks.sh create mode 100644 scripts/vyos-user-precommit-hooks.sh (limited to 'scripts') diff --git a/scripts/vyos-user-postcommit-hooks.sh b/scripts/vyos-user-postcommit-hooks.sh new file mode 100644 index 0000000..fd23f82 --- /dev/null +++ b/scripts/vyos-user-postcommit-hooks.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ -d /config/scripts/commit/post-hooks.d/ ]; then + /bin/run-parts /config/scripts/commit/post-hooks.d +fi diff --git a/scripts/vyos-user-precommit-hooks.sh b/scripts/vyos-user-precommit-hooks.sh new file mode 100644 index 0000000..cae38db --- /dev/null +++ b/scripts/vyos-user-precommit-hooks.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +if [ -d /config/scripts/commit/pre-hooks.d/ ]; then + /bin/run-parts /config/scripts/commit/pre-hooks.d +fi + -- cgit v1.2.3