From 96117b5b45795a354f204d42f665ec7c25458b41 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Thu, 9 Apr 2015 05:22:23 +0200 Subject: Remove some obsolete workaround. Use hardcoded pre/post commit hook dirs, it's not like they ever change. --- debian/vyatta-cfg.postinst.in | 11 ++--------- 1 file 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 -- cgit v1.2.3