mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
frr: Set configuration file permissions correctly
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -13,8 +13,17 @@ DAEMONS="zebra bgpd ospfd staticd"
|
|||||||
|
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
start)
|
start)
|
||||||
|
# Fix permissions of configuration directory
|
||||||
|
if [ -d "/etc/frr" ]; then
|
||||||
|
chown root.frr /etc/frr
|
||||||
|
chmod 775 /etc/frr
|
||||||
|
fi
|
||||||
|
|
||||||
for daemon in ${DAEMONS}; do
|
for daemon in ${DAEMONS}; do
|
||||||
if [ -f "/etc/frr/${daemon}.conf" ]; then
|
if [ -f "/etc/frr/${daemon}.conf" ]; then
|
||||||
|
# Set permissions
|
||||||
|
chown frr.frr "/etc/frr/${daemon}.conf"
|
||||||
|
|
||||||
boot_mesg "Starting FRRouting ${daemon}..."
|
boot_mesg "Starting FRRouting ${daemon}..."
|
||||||
loadproc "/usr/sbin/${daemon}" --daemon
|
loadproc "/usr/sbin/${daemon}" --daemon
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user