#!/bin/bash

self_path=$(readlink -f "$0")
self_directory=$(dirname "${self_path}")
cd "${self_directory}"

git submodule update --init
git pull --recurse-submodules
git checkout master

chown -R www-data:www-data .