diff options
Diffstat (limited to 'vnfs/vCPE/scripts/v_web_install.sh')
-rw-r--r-- | vnfs/vCPE/scripts/v_web_install.sh | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/vnfs/vCPE/scripts/v_web_install.sh b/vnfs/vCPE/scripts/v_web_install.sh index 94d3ebd7..e207dd09 100644 --- a/vnfs/vCPE/scripts/v_web_install.sh +++ b/vnfs/vCPE/scripts/v_web_install.sh @@ -48,9 +48,10 @@ then fi # Download required dependencies -add-apt-repository -y ppa:openjdk-r/ppa +echo "deb http://ppa.launchpad.net/openjdk-r/ppa/ubuntu $(lsb_release -c -s) main" >> /etc/apt/sources.list.d/java.list +echo "deb-src http://ppa.launchpad.net/openjdk-r/ppa/ubuntu $(lsb_release -c -s) main" >> /etc/apt/sources.list.d/java.list apt-get update -apt-get install -y wget openjdk-8-jdk apt-transport-https ca-certificates g++ libcurl4-gnutls-dev +apt-get install --allow-unauthenticated -y wget openjdk-8-jdk apt-transport-https ca-certificates g++ libcurl4-gnutls-dev sleep 1 # Download DHCP config files @@ -62,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 |