summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-03-06 06:50:28 +0100
committerGitHub <noreply@github.com>2024-03-06 06:50:28 +0100
commitfeb83f2f2b9f1d48bb5389ca5244b56edf2efbc8 (patch)
treebaba27b9187f338d73f9594ba96dc02be20db871
parentcf906599a9ce99fce04645c822093a0eab980c97 (diff)
parent72e82a5ba0159f1cb3e077afa33f5141374aa953 (diff)
downloadvyos-1x-feb83f2f2b9f1d48bb5389ca5244b56edf2efbc8.tar.gz
vyos-1x-feb83f2f2b9f1d48bb5389ca5244b56edf2efbc8.zip
Merge pull request #3096 from vyos/mergify/bp/sagitta/pr-3085
T6096: Config commits are not synced properly because 00vyos-sync is deleted by vyos-router (backport #3085)
-rwxr-xr-xsrc/init/vyos-router4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init/vyos-router b/src/init/vyos-router
index eac3e7e47..912a9ef3b 100755
--- a/src/init/vyos-router
+++ b/src/init/vyos-router
@@ -218,8 +218,8 @@ cleanup_post_commit_hooks () {
# 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)
- # exclude commits hooks from vyatta-cfg
- excluded="10vyatta-log-commit.pl 99vyos-user-postcommit-hooks"
+ # exclude commit hooks that need to always be present
+ excluded="00vyos-sync 10vyatta-log-commit.pl 99vyos-user-postcommit-hooks"
if [ -d "$cpostdir" ]; then
for f in $cpostdir/*; do
if [[ ! $excluded =~ $(basename $f) ]]; then