summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/control2
-rw-r--r--debian/vyatta-cfg-system.postinst.in4
2 files changed, 5 insertions, 1 deletions
diff --git a/debian/control b/debian/control
index c3bd1482..bc1f5ab0 100644
--- a/debian/control
+++ b/debian/control
@@ -12,7 +12,7 @@ Depends: bash (>= 3.1),
perl (>= 5.8.8),
procps (>= 1:3.2.7-3),
coreutils (>= 5.97-5.3),
- vyatta-cfg, sysv-rc, ifrename, ntp, sysklogd, busybox, ssh, whois
+ vyatta-cfg, sysv-rc, ifrename, ntp, sysklogd, busybox, ssh, whois, sudo
Suggests: util-linux (>= 2.13-5),
net-tools,
ethtool,
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index a84d41bd..7c561358 100644
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -32,6 +32,10 @@ if [ "$sysconfdir" != "/etc" ]; then
done
cp $sysconfdir/logrotate_messages /etc/logrotate.d/messages
cp $sysconfdir/default_ssh /etc/default/ssh
+
+ # sudoers
+ cp -p /etc/sudoers /etc/sudoers.vyatta-save
+ echo -e "\n%quaggavty ALL=NOPASSWD: ALL" >> /etc/sudoers
fi
# update crontab for logrotate