diff options
author | root <root@rshg054.dnsready.net> | 2011-12-13 23:14:49 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-12-13 23:14:49 +0000 |
commit | f4dcb5cb43b68e265512a03a160bdda634818b43 (patch) | |
tree | 9000841b67cefbce37255cb4d728e80bd5a11586 /community/quagga/quagga.install | |
parent | cb9c375209c236c16557878a1b864f91de27b88d (diff) |
Tue Dec 13 23:14:49 UTC 2011
Diffstat (limited to 'community/quagga/quagga.install')
-rw-r--r-- | community/quagga/quagga.install | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/community/quagga/quagga.install b/community/quagga/quagga.install new file mode 100644 index 000000000..058f4f1d7 --- /dev/null +++ b/community/quagga/quagga.install @@ -0,0 +1,22 @@ +post_install() { + groupadd -r quagga + useradd -MNr -s /bin/false -d /run/quagga -g quagga quagga && passwd -l quagga &>/dev/null + install -d -m 750 -o quagga -g quagga /{run,etc,var/log}/quagga + : +} + +pre_remove() { + for d in zebra ripd ripngd bgpd ospfd ospf6d isisd; do + /etc/rc.d/$d stop &>/dev/null + done + : +} + +post_remove() { + userdel quagga &>/dev/null + groupdel quagga &>/dev/null + rmdir /{etc,var/log}/quagga + : +} + +# vim: ft=sh ts=2 sw=2 et: |