summaryrefslogtreecommitdiffstats
path: root/vnfs/vCPE/scripts
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2017-09-06 09:49:24 -0400
committerMarco Platania <platania@research.att.com>2017-09-06 09:49:24 -0400
commitcde566c6d975fb1ea1d35078e574c09b6b977e7d (patch)
tree8a5aac5a8d6ba00b06f218bd828645aaa33db1e0 /vnfs/vCPE/scripts
parent930b5c77f0efcd79cb861913aa6e27908486f120 (diff)
Install Apache2 in vWEB vCPE VM
- Install Apache2 - Create a sample index.html web page Change-Id: Id38d7f3a060a298cc424c35d7f7c4dc00cd8b69b Issue-ID: UCA-32 Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'vnfs/vCPE/scripts')
-rw-r--r--vnfs/vCPE/scripts/v_web_install.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/vnfs/vCPE/scripts/v_web_install.sh b/vnfs/vCPE/scripts/v_web_install.sh
index 117178a6..e207dd09 100644
--- a/vnfs/vCPE/scripts/v_web_install.sh
+++ b/vnfs/vCPE/scripts/v_web_install.sh
@@ -63,6 +63,19 @@ chmod +x v_web.sh
mv v_web.sh /etc/init.d
update-rc.d v_web.sh defaults
+# Install Apache2 web server
+apt-get update
+apt install -y apache2
+mv /var/www/html/index.html /var/www/html/index.html.example
+cat > /var/www/html/index.html << EOF
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<body>
+<center><h1>Welcome to the vCPE Use Case Web Server!</h1><center>
+</body>
+</html>
+EOF
+
# Rename network interface in openstack Ubuntu 16.04 images. Then, reboot the VM to pick up changes
if [[ $CLOUD_ENV != "rackspace" ]]
then