1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/insttheme Sun Jan 31 02:29:49 2010 +0100
1.3 @@ -0,0 +1,18 @@
1.4 +#!/bin/bash
1.5 +
1.6 +if [[ ! $1 ]] ; then
1.7 + echo "Please specify a Wiki directory such as ../mywiki or /tmp/mywiki."
1.8 + exit
1.9 +fi
1.10 +
1.11 +if [[ ! $2 ]] ; then
1.12 + echo "Please also specify the directory containing the theme resources,"
1.13 + echo "such as ../moin/share/moin/."
1.14 + exit
1.15 +fi
1.16 +
1.17 +mkdir -p $2/htdocs/minimalmoin
1.18 +cp -ir themes/minimalmoin/css $2/htdocs/minimalmoin
1.19 +cp -r themes/minimalmoin/img $2/htdocs/minimalmoin
1.20 +cp themes/minimalmoin/minimalmoin.py $1/wiki/data/plugin/theme/
1.21 +chown www-data: $1/wiki/data/plugin/theme/minimalmoin.py