diff options
author | Karel Van Hecke <25814162+karelvanhecke@users.noreply.github.com> | 2021-11-17 11:35:23 +0100 |
---|---|---|
committer | Karel Van Hecke <25814162+karelvanhecke@users.noreply.github.com> | 2021-11-17 11:35:23 +0100 |
commit | bc6ea7ae8e93e7533c8143761e1018f005464f5b (patch) | |
tree | 0298058466a994666782114efe6b8d50147fd082 /redhat | |
parent | redhat: check if frr.conf already exists (diff) | |
download | frr-bc6ea7ae8e93e7533c8143761e1018f005464f5b.tar.xz frr-bc6ea7ae8e93e7533c8143761e1018f005464f5b.zip |
redhat: keep check for zebra.conf to check for per daemon configs
Signed-off-by: Karel Van Hecke <25814162+karelvanhecke@users.noreply.github.com>
Diffstat (limited to 'redhat')
-rw-r--r-- | redhat/frr.spec.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redhat/frr.spec.in b/redhat/frr.spec.in index 04a325898..7f8e89de1 100644 --- a/redhat/frr.spec.in +++ b/redhat/frr.spec.in @@ -564,8 +564,8 @@ zebra_spec_add_service fabricd 2618/tcp "Fabricd vty" /sbin/install-info %{_infodir}/frr.info.gz %{_infodir}/dir # Create dummy config file if they don't exist so basic functions can be used. -if [ ! -e %{configdir}/frr.conf ]; then - # per daemon configs exist +if [ ! -e %{configdir}/frr.conf ] && [ ! -e %{configdir}/zebra.conf ]; then + # No frr.conf and per daemon configs exist mv %{configdir}/frr.conf.template %{configdir}/frr.conf %if 0%{?frr_user:1} chown %{frr_user}:%{frr_user} %{configdir}/frr.conf |