CLOUDSTACK-1066: fix openswan install to not require interactive input

Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/31791e24
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/31791e24
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/31791e24

Branch: refs/heads/master
Commit: 31791e241d32532d2267c017055e08af6ed97c84
Parents: 6df0ff2
Author: Chiradeep Vittal <[email protected]>
Authored: Fri Feb 8 12:14:57 2013 -0800
Committer: Chiradeep Vittal <[email protected]>
Committed: Fri Feb 8 12:52:19 2013 -0800

----------------------------------------------------------------------
 .../systemvmtemplate/cloudstack-packages.sh        |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/31791e24/tools/appliance/definitions/systemvmtemplate/cloudstack-packages.sh
----------------------------------------------------------------------
diff --git 
a/tools/appliance/definitions/systemvmtemplate/cloudstack-packages.sh 
b/tools/appliance/definitions/systemvmtemplate/cloudstack-packages.sh
index 070122d..fc8c12d 100644
--- a/tools/appliance/definitions/systemvmtemplate/cloudstack-packages.sh
+++ b/tools/appliance/definitions/systemvmtemplate/cloudstack-packages.sh
@@ -39,7 +39,10 @@ install_packages() {
   #nfs client
   apt-get --no-install-recommends -q -y --force-yes install nfs-common
   #vpn stuff
-  apt-get --no-install-recommends -q -y --force-yes install xl2tpd openswan 
bcrelay ppp ipsec-tools tdb-tools
+  apt-get --no-install-recommends -q -y --force-yes install xl2tpd bcrelay ppp 
ipsec-tools tdb-tools
+  echo "openswan openswan/install_x509_certificate boolean false" | 
debconf-set-selections
+  echo "openswan openswan/install_x509_certificate seen true" | 
debconf-set-selections
+  chroot .  apt-get --no-install-recommends -q -y --force-yes install openswan
   #vmware tools
   apt-get --no-install-recommends -q -y --force-yes install open-vm-tools
   #xenstore utils

Reply via email to