#!/bin/bash -ex
#update
apt-get update
#Download OpenSIS to /root
wget http://sourceforge.net/projects/opensis-ce/files/opensis4dot7.zip
#unzip opensis to usr/share and dispose of the zip
unzip -d /usr/share/ opensis4dot7.zip
rm opensis4dot7.zip
#Set ownership for the /usr/share/opensis
chown -R www-data:www-data /usr/share/opensis-ce
#create opensis in conf.d
echo "Alias /opensis /usr/share/opensis-ce" > /etc/apache2/conf.d/opensis
