From 433faaa9fe7d7dfc02db78ff039e772f5037037a Mon Sep 17 00:00:00 2001
From: Apachez <apachez@gmail.com>
Date: Mon, 4 Mar 2024 18:59:54 +0100
Subject: T6096: Config commits are not synced properly because 00vyos-sync is
 deleted by vyos-router

---
 src/init/vyos-router | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/init')

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
-- 
cgit v1.2.3