From 1bc8b6e8b0d6dc3bdf9bb69ba2630f202bcbdd48 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Thu, 9 Apr 2015 02:44:04 +0200 Subject: Bug #538: run user commit hooks as vyattacfg group member. Fix wrong placement of the post-commit script. --- scripts/vyos-user-postcommit-hooks.sh | 2 +- scripts/vyos-user-precommit-hooks.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') 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 -- cgit v1.2.3