summaryrefslogtreecommitdiff
path: root/debian/vyatta-cfg-system.postinst.in
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@uffda.(none)>2007-10-31 18:49:53 -0700
committerStig Thormodsrud <stig@uffda.(none)>2007-10-31 18:49:53 -0700
commite992ddd83ab2002ea6aeb9a4cacf89f9a888c17b (patch)
tree52c88c9141e41847a515dd3f9e12634d02d423e8 /debian/vyatta-cfg-system.postinst.in
parent290a17f504293f80b54bb8960293e6bc0cfacb19 (diff)
downloadvyatta-cfg-quagga-e992ddd83ab2002ea6aeb9a4cacf89f9a888c17b.tar.gz
vyatta-cfg-quagga-e992ddd83ab2002ea6aeb9a4cacf89f9a888c17b.zip
Fix snmp such that it can be configured by non-root user.
Diffstat (limited to 'debian/vyatta-cfg-system.postinst.in')
-rw-r--r--debian/vyatta-cfg-system.postinst.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index 0fbdfd76..7edb9960 100644
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -7,7 +7,7 @@ bindir=@bindir@
sbindir=@sbindir@
# remove init of daemons that we start/stop
-for init in ntp ssh; do
+for init in ntp ssh snmpd; do
update-rc.d -f ${init} remove >/dev/null
done
@@ -22,7 +22,8 @@ if [ "$sysconfdir" != "/etc" ]; then
for conf in hosts motd.tail ntp.conf syslog.conf logrotate.d/messages \
default/ssh ssh/ssh_host_key quagga/daemons quagga/zebra.conf \
quagga/bgpd.conf quagga/ospfd.conf quagga/ospf6d.conf \
- quagga/ripd.conf quagga/ripngd.conf quagga/isisd.conf
+ quagga/ripd.conf quagga/ripngd.conf quagga/isisd.conf \
+ snmp/snmpd.conf snmp/snmptrapd.conf
do
[ -f /etc/$conf ] && mv -f /etc/$conf /etc/$conf.vyatta-save
touch /etc/$conf
@@ -40,6 +41,7 @@ if [ "$sysconfdir" != "/etc" ]; then
if ! grep -q '%quaggavty ALL=NOPASSWD: ALL' /etc/sudoers; then
echo -e "\n%quaggavty ALL=NOPASSWD: ALL" >> /etc/sudoers
fi
+ echo "Defaults env_keep+=VYATTA_*" >> /etc/sudoers
# ssh v1. remove the empty key file
rm /etc/ssh/ssh_host_key