1 # created by shild <shildv@gmail.com>
2 # slightly modified by Bart Kos, bro at fast-stable-secure dot net
5 echo -n "adding quagga system group... "
6 groupadd quagga && echo -n "done."
9 echo -n "adding quagga system user... "
10 useradd -c "Quagga Software Routing Suite" -d /etc/quagga.d -g quagga -s /bin/false quagga && echo -n "done."
13 passwd -l quagga &>/dev/null
14 mkdir -p /var/run/quagga
15 chown quagga:quagga /var/run/quagga
16 chmod 775 /var/run/quagga
18 chown quagga:quagga /var/log/quagga
20 chown root:quagga /etc/quagga.d
21 chown quagga:quagga /etc/quagga.d/*
22 chmod 600 /etc/quagga.d/*
24 chown root:quagga /var/lib/quagga
26 chown root:quagga /var/log/quagga
27 chmod 775 /var/log/quagga
30 ==> See /etc/quagga.d for config files
35 echo -n -e "\nremoving quagga system user... "
36 userdel quagga && echo "done."
38 if [ -d /var/run/quagga ]; then
41 if [ -d /var/lib/quagga ]; then
45 echo "==> Not removing tmp and log directories"
53 # vim: ft=sh ts=2 sw=2