You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Security-VM/build-vm/boot.sh

25 lines
581 B

#!/bin/sh
# This script runs each time the VM starts up
echo
cd /home/security/workshop
# Update repository
git pull origin master
# Update Apache configuration
cp build-vm/security-workshop.apache.conf /etc/apache2/sites-available/security-workshop.conf
a2dissite 000-default
a2ensite security-workshop
service apache2 reload
# Show welcome message
IP=`ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print \$1}'`
echo
echo
echo " De Security Workshop VM is nu opgestart"
echo " Ga met je browser naar deze URL:"
echo
echo " \033[0;32mhttp://$IP/\033[0m"
echo