aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-12-11 11:15:09 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-12-11 11:15:09 -0200
commitbdf6d25b861aaa743f6ce3b1f839ee5b24c758de (patch)
treedf5af954157936b2b2d5da2a7812584d0eef5b30
parent8e296cf03ecc4bfd7d4b99b82955fe5049ce48c7 (diff)
downloadhydra-bdf6d25b861aaa743f6ce3b1f839ee5b24c758de.tar.gz
hydra-bdf6d25b861aaa743f6ce3b1f839ee5b24c758de.tar.bz2
Adding -y to apt-get
-rwxr-xr-xshare/hydractl/provision12
1 files changed, 6 insertions, 6 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index 1d0ae6b..19daad7 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -77,8 +77,8 @@ echo LANG=C > /tmp/debootstrap/etc/default/locale
# Initial upgrade.
echo "Applying initial upgrades..."
chroot /tmp/debootstrap/ apt-get update
-chroot /tmp/debootstrap/ apt-get upgrade
-chroot /tmp/debootstrap/ apt-get install locales cryptsetup lvm2 initramfs-tools grub
+chroot /tmp/debootstrap/ apt-get upgrade -y
+chroot /tmp/debootstrap/ apt-get install locales cryptsetup lvm2 initramfs-tools grub -y
# Crypttab.
echo "Configuring crypttab..."
@@ -139,7 +139,7 @@ else
kernel_arch="$arch"
fi
-chroot /tmp/debootstrap apt-get install linux-image-2.6-vserver-$kernel_arch
+chroot /tmp/debootstrap apt-get install linux-image-2.6-vserver-$kernel_arch -y
# Initramfs.
echo "Creating initramfs..."
@@ -147,11 +147,11 @@ chroot /tmp/debootstrap update-initramfs -v -u
# Utils.
echo "Installing basic utilities..."
-chroot /tmp/debootstrap apt-get install screen cron lsb-release openssl
+chroot /tmp/debootstrap apt-get install screen cron lsb-release openssl -y
# Ssh.
echo "Installing OpenSSH daemon..."
-chroot /tmp/debootstrap apt-get install openssh-server
+chroot /tmp/debootstrap apt-get install openssh-server -y
echo "OpenSSH fingerprints:"
chroot /tmp/debootstrap ssh-keygen -l -f /etc/ssh/ssh_host_dsa_key.pub
@@ -159,7 +159,7 @@ chroot /tmp/debootstrap ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub
# Accounts.
echo "Installing sudo..."
-chroot /tmp/debootstrap apt-get install sudo
+chroot /tmp/debootstrap apt-get install sudo -y
echo "Choose a root password."
chroot /tmp/debootstrap passwd root