diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2024-01-25 16:47:31 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2024-01-27 19:01:19 +0100 |
commit | a97d0c5875a562a16a9e3cbae03e615c16e47c87 (patch) | |
tree | 0e2290137a99141de9f3eb683c8f7b3fe13687d6 /debian | |
parent | build: nuke `LDPD_SOCKET` (diff) | |
download | frr-a97d0c5875a562a16a9e3cbae03e615c16e47c87.tar.xz frr-a97d0c5875a562a16a9e3cbae03e615c16e47c87.zip |
lib: set up `frr_libstatedir`
This needs to be used for persistent state, which currently is misplaced
into `/var/run` / `/run` where it gets deleted across reboots.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'debian')
-rw-r--r-- | debian/frr.postinst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/debian/frr.postinst b/debian/frr.postinst index eb9ec67dd..9c9b4a821 100644 --- a/debian/frr.postinst +++ b/debian/frr.postinst @@ -17,8 +17,10 @@ adduser \ usermod -a -G frrvty frr mkdir -m 0755 -p /var/log/frr +mkdir -m 0700 -p /var/lib/frr mkdir -p /etc/frr +chown frr: /var/lib/frr # only change ownership of files when they were previously owned by root or # quagga; this is to ensure we don't trample over some custom user setup. |