#! /usr/bin/env sh

set -e
set -x 

if [ "$(whoami)" != "root" ]; then
    echo "error: this script must be run as root"
    exit 1
fi

prefix="/srv/www/evebox.org-files"

${prefix}/debian/update.sh unstable
${prefix}/rpm/development/update.sh

${prefix}/debian/update.sh stable
${prefix}/rpm/stable/update.sh

#restorecon -R -v -F $(pwd)
