diff options
author | Daniil Baturin <daniil@baturin.org> | 2015-04-09 05:22:23 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2015-04-09 05:22:23 +0200 |
commit | 96117b5b45795a354f204d42f665ec7c25458b41 (patch) | |
tree | 15ce42d136c8bea58585fad74ce2b88b78fb3301 /debian/vyatta-cfg.postinst.in | |
parent | 5fd3f1c2ed69401f9135884e6f875132f875dc99 (diff) | |
download | vyatta-cfg-96117b5b45795a354f204d42f665ec7c25458b41.tar.gz vyatta-cfg-96117b5b45795a354f204d42f665ec7c25458b41.zip |
Remove some obsolete workaround.
Use hardcoded pre/post commit hook dirs, it's not like they ever change.
Diffstat (limited to 'debian/vyatta-cfg.postinst.in')
-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 |