summaryrefslogtreecommitdiff
path: root/debian/vyatta-cfg.postinst.in
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 /debian/vyatta-cfg.postinst.in
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 'debian/vyatta-cfg.postinst.in')
-rw-r--r--debian/vyatta-cfg.postinst.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/vyatta-cfg.postinst.in b/debian/vyatta-cfg.postinst.in
index f840803..6907b7e 100644
--- a/debian/vyatta-cfg.postinst.in
+++ b/debian/vyatta-cfg.postinst.in
@@ -47,6 +47,7 @@ rm -f /etc/bash_completion.d/20vyatta-cfg
# create symlink for post commit hook
ln -sf /opt/vyatta/sbin/vyatta-log-commit.pl /etc/commit/post-hooks.d/10vyatta-log-commit.pl
+# User pre/post-commit hook executors
ln -s /opt/vyatta/sbin/vyos-user-precommit-hooks.sh /etc/commit/pre-hooks.d/99vyos-user-precommit-hooks
-ln -s /opt/vyatta/sbin/vyos-user-postcommit-hooks.sh /etc/commit/pre-hooks.d/99vyos-user-postcommit-hooks
+ln -s /opt/vyatta/sbin/vyos-user-postcommit-hooks.sh /etc/commit/post-hooks.d/99vyos-user-postcommit-hooks