Merge pull request #10083 from karelvanhecke/master

redhat: check if frr.conf already exists
This commit is contained in:
Donald Sharp 2021-11-22 09:02:49 -05:00 committed by GitHub
commit 7a27d523aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}/zebra.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