summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2015-04-03 20:13:57 +0200
committerDaniil Baturin <daniil@baturin.org>2015-04-03 20:13:57 +0200
commit5e875b76c73e28225e5dc0dc0f30abb113305cad (patch)
tree6ab50843a555e64a76121b4cd28ad206e62ca707 /scripts
parent4ecf752ebc3dfbb87a5de14f4b139792e566edc7 (diff)
downloadvyatta-cfg-5e875b76c73e28225e5dc0dc0f30abb113305cad.tar.gz
vyatta-cfg-5e875b76c73e28225e5dc0dc0f30abb113305cad.zip
Bug #538: add scripts for running user commit hooks.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/vyos-user-postcommit-hooks.sh5
-rw-r--r--scripts/vyos-user-precommit-hooks.sh6
2 files changed, 11 insertions, 0 deletions
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
+