#!/bin/bash # Configures this VM to be a web server running the 'index' demo # # Example usage (on guest): # vn-deploywebindex # # For more info see: http://sandilands.info/sgordon/virtnet # # $Revision$ # $Author$ # $Date$ # $URL$ # Path for virtnet directory on guest, e.g. /home/network/virtnet virtnetpath="/home/network/virtnet" # Path of web pages webpath="${virtnetpath}/data/webdemos/index/www" # Copy files and set ownership sudo cp -a ${webpath}/* /var/www/html/ sudo chown -R network.network /var/www/html/* # Start apache sudo systemctl start apache2