diff options
Diffstat (limited to 'debian/vyatta-cfg-system.postinst.in')
-rw-r--r-- | debian/vyatta-cfg-system.postinst.in | 6 |
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 |