diff options
author | Daniil Baturin <daniil@baturin.org> | 2015-04-09 02:44:04 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2015-04-09 02:44:04 +0200 |
commit | 1bc8b6e8b0d6dc3bdf9bb69ba2630f202bcbdd48 (patch) | |
tree | 7ad76a9fa308ec92d713b048aa425bd998a8a05d /scripts | |
parent | c44bd18184c1a5eab421f0bfab21a5c0089e6794 (diff) | |
download | vyatta-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.sh | 2 | ||||
-rw-r--r-- | scripts/vyos-user-precommit-hooks.sh | 2 |
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 |