diff options
Diffstat (limited to 'debian')
-rw-r--r-- | debian/vyatta-cfg.postinst.in | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/debian/vyatta-cfg.postinst.in b/debian/vyatta-cfg.postinst.in index 6907b7e..527a744 100644 --- a/debian/vyatta-cfg.postinst.in +++ b/debian/vyatta-cfg.postinst.in @@ -34,15 +34,8 @@ for bin in my_cli_bin my_cli_shell_api; do done # commit hooks -for hook in PreCommit PostCommit; do - d=$(cli-shell-api get${hook}HookDir) - if [ -n "$d" ] && [ ! -e "$d" ]; then - mkdir -p "$d" - fi -done - -# handle renamed file (not automatically deleted since it was "conffile") -rm -f /etc/bash_completion.d/20vyatta-cfg +mkdir -p /etc/commit/pre-hooks.d +mkdir -p /etc/commit/post-hooks.d # create symlink for post commit hook ln -sf /opt/vyatta/sbin/vyatta-log-commit.pl /etc/commit/post-hooks.d/10vyatta-log-commit.pl |