File: quagga-core.postinst

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 (13 lines) | stat: -rw-r--r-- 343 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
set -eu

if [ "$1" = "configure" ]; then
  # Set permissions to allow quagga daemons and vtysh to write config files.
  dpkg-statoverride --list /etc/quagga || \
  dpkg-statoverride --add --update quagga quaggavty 775 /etc/quagga
fi

# remove symlinks to /etc/init.d/quagga from runlevels
update-rc.d -f quagga remove

#DEBHELPER#