#!/bin/bash

if [[ ! $1 ]] ; then
    echo "Please specify a directory such as ../mysite or /tmp/mysite."
    echo "This should be the root of your Wiki installation and contain the wiki"
    echo "directory."
    exit
fi

cp macros/*.py $1/wiki/data/plugin/macro/
chown www-data: $1/wiki/data/plugin/macro/*.py
