1
0
mirror of synced 2026-04-10 06:26:33 +00:00

2006-02-05 14:53:27 by steve

Install sudo upon the guest if /etc/sudoers is present.
This commit is contained in:
steve
2006-02-05 14:53:27 +00:00
parent f113cc8a24
commit 0069f07705

View File

@@ -5,7 +5,7 @@
#
# Steve
# --
# $Id: 60-copy-host-files,v 1.5 2006-01-08 01:53:33 steve Exp $
# $Id: 60-copy-host-files,v 1.6 2006-02-05 14:53:27 steve Exp $
@@ -18,10 +18,11 @@ cp /etc/group ${prefix}/etc/
cp /etc/gshadow ${prefix}/etc/
#
# Copy the sudoers file. Install the package too ?
# If sudo is installed upon the host then install it upon the guest.
#
if [ -e /etc/sudoers ]; then
cp /etc/sudoers ${prefix}/etc/
chmod 440 ${prefix}/etc/sudoers
DEBIAN_FRONTEND=noninteractive chroot ${prefix} /usr/bin/apt-get --yes --force-yes install sudo
fi