2006-02-05 14:53:27 by steve
Install sudo upon the guest if /etc/sudoers is present.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user