File: quagga-core.preinst

package info (click to toggle)
quagga 1.2.4-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 16,788 kB
  • sloc: ansic: 262,230; sh: 5,570; makefile: 717; perl: 329; lisp: 62; awk: 30
file content (27 lines) | stat: -rw-r--r-- 550 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
set -eu

# create quaggavty group
addgroup --system quaggavty > /dev/null

# create quagga group
addgroup --system quagga > /dev/null

# create quagga user
adduser \
  --system \
  --ingroup quagga \
  --home /run/quagga/ \
  --no-create-home \
  --gecos "Quagga routing suite" \
  quagga  > /dev/null

# add quagga user to the quaggavty group
adduser quagga quaggavty

# mask out watchquagga on systemd
if [ ! -e /lib/systemd/system/watchquagga.service ]; then
    ln -s /dev/null /lib/systemd/system/watchquagga.service
fi

#DEBHELPER#