aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/prepare-node.sh
diff options
context:
space:
mode:
authorFeng Pan <fpan@redhat.com>2016-11-07 19:22:21 -0500
committerFeng Pan <fpan@redhat.com>2016-11-21 21:27:09 -0500
commit9326e4237f4d161f297dc4493ab4928ea6e2bf0f (patch)
tree25372fa964fe84b160c5bfc58304285902edbefc /scripts/prepare-node.sh
parentc70bea9fb9cd5dfb29d7ab8f7aaae7324c31f1e3 (diff)
Initial Commit.
Change-Id: I212ec4be42357edddd931e9e479e33131ccd4bac Signed-off-by: Feng Pan <fpan@redhat.com>
Diffstat (limited to 'scripts/prepare-node.sh')
-rwxr-xr-xscripts/prepare-node.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/prepare-node.sh b/scripts/prepare-node.sh
new file mode 100755
index 0000000..7f6ad10
--- /dev/null
+++ b/scripts/prepare-node.sh
@@ -0,0 +1,8 @@
+#!/bin/bash -xe
+
+if [ -f /usr/bin/yum ]; then
+sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel
+elif [ -f /usr/bin/apt-get ]; then
+sudo apt-get update
+sudo apt-get install -y libxml2-dev libxslt-dev zlib1g-dev
+fi