summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2024-01-25 16:47:31 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2024-01-27 19:01:19 +0100
commita97d0c5875a562a16a9e3cbae03e615c16e47c87 (patch)
tree0e2290137a99141de9f3eb683c8f7b3fe13687d6 /debian
parentbuild: nuke `LDPD_SOCKET` (diff)
downloadfrr-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.postinst2
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.