summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2015-04-09 02:44:04 +0200
committerDaniil Baturin <daniil@baturin.org>2015-04-09 02:44:04 +0200
commit1bc8b6e8b0d6dc3bdf9bb69ba2630f202bcbdd48 (patch)
tree7ad76a9fa308ec92d713b048aa425bd998a8a05d /scripts
parentc44bd18184c1a5eab421f0bfab21a5c0089e6794 (diff)
downloadvyatta-cfg-1bc8b6e8b0d6dc3bdf9bb69ba2630f202bcbdd48.tar.gz
vyatta-cfg-1bc8b6e8b0d6dc3bdf9bb69ba2630f202bcbdd48.zip
Bug #538: run user commit hooks as vyattacfg group member.
Fix wrong placement of the post-commit script.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/vyos-user-postcommit-hooks.sh2
-rw-r--r--scripts/vyos-user-precommit-hooks.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vyos-user-postcommit-hooks.sh b/scripts/vyos-user-postcommit-hooks.sh
index fd23f82..22298a7 100644
--- a/scripts/vyos-user-postcommit-hooks.sh
+++ b/scripts/vyos-user-postcommit-hooks.sh
@@ -1,5 +1,5 @@
#!/bin/sh
if [ -d /config/scripts/commit/post-hooks.d/ ]; then
- /bin/run-parts /config/scripts/commit/post-hooks.d
+ sg vyattacfg -c "/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
index cae38db..85b0151 100644
--- a/scripts/vyos-user-precommit-hooks.sh
+++ b/scripts/vyos-user-precommit-hooks.sh
@@ -1,6 +1,6 @@
#!/bin/sh
if [ -d /config/scripts/commit/pre-hooks.d/ ]; then
- /bin/run-parts /config/scripts/commit/pre-hooks.d
+ sg vyattacfg -c "/bin/run-parts /config/scripts/commit/pre-hooks.d"
fi