diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/rl-system.init | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/rl-system.init b/scripts/rl-system.init index d6f974f7..20534897 100755 --- a/scripts/rl-system.init +++ b/scripts/rl-system.init @@ -206,8 +206,13 @@ start () { fi done - # Remove links from the commit hook directory - rm -f /etc/commit/* + # Remove links from the post-commit hooks directory. + # note that this approach only supports hooks that are "configured", + # i.e., it does not support hooks that need to always be present. + cpostdir=$(cli-shell-api getPostCommitHookDir) + if [ -d "$cpostdir" ]; then + rm -f $cpostdir/* + fi ## Clear out apt config file--it will be filled in by config load empty /etc/apt/sources.list |