mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 04:01:59 +00:00
Merge pull request #10083 from karelvanhecke/master
redhat: check if frr.conf already exists
This commit is contained in:
commit
7a27d523aa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user